diff --git a/routes/web.php b/routes/web.php index b2d7b20..76955c6 100644 --- a/routes/web.php +++ b/routes/web.php @@ -33,6 +33,12 @@ $router->group(['prefix' => 'api', 'middleware' => 'cors'], function () use ($ro $router->post('/role-menu/search', 'RoleMenuController@search'); $router->get('/role-menu/get-role/{id}', 'RoleMenuController@listMenu'); + $router->post('/sales-contact/add', 'ContactSalesController@add'); + $router->get('/sales-contact/edit/{id}', 'ContactSalesController@edit'); + $router->put('/sales-contact/update/{id}', 'ContactSalesController@update'); + $router->post('/sales-contact/search', 'ContactSalesController@search'); + $router->delete('/sales-contact/delete/{id}', 'ContactSalesController@delete'); + $router->group(['middleware' => ['auth', 'cors']], function () use ($router) { $router->get('/dashboard/get-company-cashflow/{company_id}/{all_project}/{hierarchy}/{role_name}', 'DashboardBoDController@getCompanyCashFlow'); // project expenditure @@ -589,5 +595,10 @@ $router->group(['prefix' => 'api', 'middleware' => 'cors'], function () use ($ro $router->get('/demo-management/list', 'DemoController@list'); $router->get('information-storage/{company_name}', 'Controller@storage'); + $router->post('/product-transaction/edit/{id}', 'ProductTransactionController@add'); + $router->put('/product-transaction/update/{id}', 'ProductTransactionController@update'); + $router->post('/product-transaction/search', 'ProductTransactionController@search'); + $router->delete('/product-transaction/delete/{id}', 'ProductTransactionController@delete'); + $router->get('/product-transaction/list', 'ProductTransactionController@list'); }); });