mirror of
https://github.com/IT4Change/gradido.git
synced 2026-01-16 09:54:32 +00:00
point frontend to new api route
This commit is contained in:
parent
d4145cf5c1
commit
7b8c5ff883
@ -110,6 +110,7 @@ Router::scope('/', function (RouteBuilder $routes) {
|
||||
*/
|
||||
//$routes->connect('/', ['controller' => 'Pages', 'action' => 'display', 'home']);
|
||||
$routes->connect('/', ['controller' => 'Dashboard', 'action' => 'index']);
|
||||
$routes->connect('/api/:action/*', ['controller' => 'AppRequests'], ['routeClass' => 'DashedRoute']);
|
||||
//$routes->connect('/client', ['controller' => 'Pages', 'action' => 'display', 'js']);
|
||||
$routes->connect('/server', ['controller' => 'Dashboard', 'action' => 'serverIndex']);
|
||||
$routes->connect('/client', ['controller' => 'Pages', 'action' => 'display', 'vue']);
|
||||
|
||||
@ -72,6 +72,9 @@ class AppRequestsController extends AppController
|
||||
"group": "gdd1",
|
||||
"auto_sign": true
|
||||
*/
|
||||
if(!$this->request->is('post')) {
|
||||
return $this->returnJson(['state' => 'error', 'msg' => 'no post']);
|
||||
}
|
||||
$data = $this->request->input('json_decode');
|
||||
$login_request_result = $this->requestLogin(0, false);
|
||||
if($login_request_result !== true) {
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
LOGIN_API_URL=http://localhost/login_api/
|
||||
COMMUNITY_API_STATE_BALANCE_URL=http://localhost/state-balances/
|
||||
COMMUNITY_API_TRANSACTION_CREATION_URL=http://localhost/transaction-creations/
|
||||
COMMUNITY_API_TRANSACTION_SEND_COINS=http://localhost/api
|
||||
VUE_PATH=/vue
|
||||
@ -57,7 +57,7 @@ const communityAPI = {
|
||||
memo,
|
||||
auto_sign: true,
|
||||
}
|
||||
return apiPost(CONFIG.COMMUNITY_API_TRANSACTION_SEND_COINS + 'ajaxCreate/', payload)
|
||||
return apiPost(CONFIG.COMMUNITY_API_TRANSACTION_SEND_COINS + 'sendCoins/', payload)
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@ -16,7 +16,7 @@ const server = {
|
||||
// Schöpfung
|
||||
// COMMUNITY_API_TRANSACTION_CREATION_URL: process.env.COMMUNITY_API_TRANSACTION_CREATION_URL || 'http://localhost/transaction-creations/',
|
||||
COMMUNITY_API_TRANSACTION_SEND_COINS:
|
||||
process.env.COMMUNITY_API_TRANSACTION_SEND_COINS || 'http://localhost/transaction-send-coins/',
|
||||
process.env.COMMUNITY_API_TRANSACTION_SEND_COINS || 'http://localhost/api/',
|
||||
}
|
||||
|
||||
const CONFIG = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user