From 6183502af26b640abd2a9308973b9331cb21d669 Mon Sep 17 00:00:00 2001 From: Muhammad Sulaiman Yusuf Date: Thu, 25 Aug 2022 18:31:24 +0700 Subject: [PATCH] update integration material --- config/api.php | 4 +++- routes/web.php | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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');