|
|
@ -1,10 +1,10 @@ |
|
|
|
<?php |
|
|
|
<?php |
|
|
|
|
|
|
|
|
|
|
|
$router->get('/', function () use ($router) { |
|
|
|
$router->get('/', function () use ($router) { |
|
|
|
return $router->app->version(); |
|
|
|
return $router->app->version(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
$router->group(['prefix'=>'api', 'middleware' => 'cors'], function () use ($router) { |
|
|
|
$router->group(['prefix' => 'api', 'middleware' => 'cors'], function () use ($router) { |
|
|
|
$router->post('/login', 'AuthController@login'); |
|
|
|
$router->post('/login', 'AuthController@login'); |
|
|
|
|
|
|
|
|
|
|
|
$router->post('/menu/add', 'MenuController@add'); |
|
|
|
$router->post('/menu/add', 'MenuController@add'); |
|
|
@ -53,7 +53,7 @@ $router->group(['prefix'=>'api', 'middleware' => 'cors'], function () use ($rout |
|
|
|
$router->post('/document-activity/search', 'ActivityDokumenController@searchDocProject'); |
|
|
|
$router->post('/document-activity/search', 'ActivityDokumenController@searchDocProject'); |
|
|
|
$router->get('/document-activity/download/{id}', 'ActivityDokumenController@downloadDokumen'); |
|
|
|
$router->get('/document-activity/download/{id}', 'ActivityDokumenController@downloadDokumen'); |
|
|
|
|
|
|
|
|
|
|
|
$router->get('/project-by-customer/{id}','ProjectController@getByUser'); |
|
|
|
$router->get('/project-by-customer/{id}', 'ProjectController@getByUser'); |
|
|
|
$router->post('/project/search', 'ProjectController@search'); |
|
|
|
$router->post('/project/search', 'ProjectController@search'); |
|
|
|
$router->post('/project/add', 'ProjectController@add'); |
|
|
|
$router->post('/project/add', 'ProjectController@add'); |
|
|
|
$router->put('/project/update/{id}', 'ProjectController@update'); |
|
|
|
$router->put('/project/update/{id}', 'ProjectController@update'); |
|
|
@ -207,11 +207,11 @@ $router->group(['prefix'=>'api', 'middleware' => 'cors'], function () use ($rout |
|
|
|
$router->get('/activity/{id}/{proyek_id}/get', 'ActivityController@getByGanttId'); |
|
|
|
$router->get('/activity/{id}/{proyek_id}/get', 'ActivityController@getByGanttId'); |
|
|
|
$router->post('/activity/search', 'ActivityController@search'); |
|
|
|
$router->post('/activity/search', 'ActivityController@search'); |
|
|
|
$router->post('/activity/search-analysis', 'ActivityController@searchAnalysis'); |
|
|
|
$router->post('/activity/search-analysis', 'ActivityController@searchAnalysis'); |
|
|
|
$router->post('/activity/import', 'ActivityController@import'); |
|
|
|
$router->post('/activity/import', 'ActivityController@import'); |
|
|
|
$router->post('/activity/import-update', 'ActivityController@importUpdate'); |
|
|
|
$router->post('/activity/import-update', 'ActivityController@importUpdate'); |
|
|
|
$router->post('/activity/import-old', 'ActivityController@importOld'); |
|
|
|
$router->post('/activity/import-old', 'ActivityController@importOld'); |
|
|
|
$router->post('/activity/batch-update/{ganttId}', 'ActivityController@batchUpdate'); |
|
|
|
$router->post('/activity/batch-update/{ganttId}', 'ActivityController@batchUpdate'); |
|
|
|
$router->get('/activity/update-schedule/{ganttId}', 'ActivityController@updateSchedule'); |
|
|
|
$router->get('/activity/update-schedule/{ganttId}', 'ActivityController@updateSchedule'); |
|
|
|
$router->post('/task', 'ActivityController@add'); |
|
|
|
$router->post('/task', 'ActivityController@add'); |
|
|
|
$router->get('/task/edit/{id}', 'ActivityController@edit'); |
|
|
|
$router->get('/task/edit/{id}', 'ActivityController@edit'); |
|
|
|
$router->put('/task/{id}', 'ActivityController@update'); |
|
|
|
$router->put('/task/{id}', 'ActivityController@update'); |
|
|
@ -411,7 +411,7 @@ $router->group(['prefix'=>'api', 'middleware' => 'cors'], function () use ($rout |
|
|
|
$router->get('/report-k3-detail/list', 'ReportK3DetailController@list'); |
|
|
|
$router->get('/report-k3-detail/list', 'ReportK3DetailController@list'); |
|
|
|
|
|
|
|
|
|
|
|
$router->post('/user-to-proyek/add', 'UserToProyekController@add'); |
|
|
|
$router->post('/user-to-proyek/add', 'UserToProyekController@add'); |
|
|
|
$router->post('/user-to-proyek/add-multiple', 'UserToProyekController@addMultiple'); |
|
|
|
$router->post('/user-to-proyek/add-multiple', 'UserToProyekController@addMultiple'); |
|
|
|
$router->get('/user-to-proyek/edit/{id}', 'UserToProyekController@edit'); |
|
|
|
$router->get('/user-to-proyek/edit/{id}', 'UserToProyekController@edit'); |
|
|
|
$router->put('/user-to-proyek/update/{id}', 'UserToProyekController@update'); |
|
|
|
$router->put('/user-to-proyek/update/{id}', 'UserToProyekController@update'); |
|
|
|
$router->post('/user-to-proyek/search', 'UserToProyekController@search'); |
|
|
|
$router->post('/user-to-proyek/search', 'UserToProyekController@search'); |
|
|
@ -496,6 +496,12 @@ $router->group(['prefix'=>'api', 'middleware' => 'cors'], function () use ($rout |
|
|
|
$router->post('/broadcast/search', 'BroadcastController@search'); |
|
|
|
$router->post('/broadcast/search', 'BroadcastController@search'); |
|
|
|
$router->delete('/broadcast/delete/{id}', 'BroadcastController@delete'); |
|
|
|
$router->delete('/broadcast/delete/{id}', 'BroadcastController@delete'); |
|
|
|
$router->get('/broadcast/list', 'BroadcastController@list'); |
|
|
|
$router->get('/broadcast/list', 'BroadcastController@list'); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$router->post('/company-management/add', 'CompanyController@add'); |
|
|
|
|
|
|
|
$router->get('/company-management/edit/{id}', 'CompanyController@edit'); |
|
|
|
|
|
|
|
$router->put('/company-management/update/{id}', 'CompanyController@update'); |
|
|
|
|
|
|
|
$router->post('/company-management/search', 'CompanyController@search'); |
|
|
|
|
|
|
|
$router->delete('/company-management/delete/{id}', 'CompanyController@delete'); |
|
|
|
|
|
|
|
$router->get('/company-management/list', 'CompanyController@list'); |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|