diff --git a/config/api.php b/config/api.php index dfe274b..4a6fad5 100644 --- a/config/api.php +++ b/config/api.php @@ -1,5 +1,7 @@ env('API_NOMINATIM', 'https://nominatim.oslogdev.com') + 'nominatim' => env('API_NOMINATIM', 'https://nominatim.oslogdev.com'), + 'adw' => env('API_ADW', 'http://ospro-api.adyawinsa.com:9083/api'), + 'adw_token' => env('API_ADW_TOKEN', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIxMjAyIiwiZXhwIjoxNjkxODMwNDkzfQ.DvBQIOZsdFndWsliPCZT65Y6G5Xx4vWBKz8Rhe7rvRA') ]; ?> diff --git a/routes/web.php b/routes/web.php index 153d050..92113f4 100644 --- a/routes/web.php +++ b/routes/web.php @@ -97,13 +97,13 @@ $router->group(['prefix'=>'api', 'middleware' => 'cors'], function () use ($rout $router->put('/project-type/update/{id}', 'ProjectTypeController@update'); $router->delete('/project-type/delete/{id}', 'ProjectTypeController@delete'); $router->get('/project-type/list', 'ProjectTypeController@list'); - + $router->post('/project-phase/search', 'ProjectPhaseController@search'); $router->post('/project-phase/add', 'ProjectPhaseController@add'); $router->get('/project-phase/edit/{id}', 'ProjectPhaseController@edit'); $router->put('/project-phase/update/{id}', 'ProjectPhaseController@update'); $router->delete('/project-phase/delete/{id}', 'ProjectPhaseController@delete'); - $router->get('/project-phase/list', 'ProjectPhaseController@list'); + $router->get('/project-phase/list', 'ProjectPhaseController@list'); $router->post('/user-to-project/assign', 'UserProyekController@assignUserProyek'); @@ -113,6 +113,7 @@ $router->group(['prefix'=>'api', 'middleware' => 'cors'], function () use ($rout $router->put('/request-material/update/{id}', 'RequestMaterialController@update'); $router->delete('/request-material/delete/{id}', 'RequestMaterialController@delete'); $router->get('/request-material/list', 'RequestMaterialController@list'); + $router->get('/request-material/get-material-integration', 'RequestMaterialController@getMaterialIntegration'); $router->put('/request-material/update-warehouse-site/{id}', 'RequestMaterialController@updateWarehouseSite');