This commit is contained in:
Afiq
2020-12-31 17:20:46 +08:00
parent 2c94b69319
commit 2e9275e820
2 changed files with 29 additions and 2 deletions
+1
View File
@@ -23,6 +23,7 @@ $router->group(['prefix'=>'api'], function () use ($router){
$router->get('customers',['uses'=>'CustomerController@showAllCustomers']);
$router->get('customers/cawangan/{kodcaw}',['uses'=>'CustomerController@showAllCustomersByCawangan']);
$router->get('customers/{ic}',['uses'=>'CustomerController@showOneCustomerByIC']);
$router->get('customers/mobile/{ic}',['uses'=>'CustomerController@showOneCustomerByICMobile']);
$router->get('customers/{ic}/gadai/{status}',['uses'=>'CustomerController@showOneCustomerGadai']);
$router->get('customers/{ic}/gadai/{status}/{kodcaw}',['uses'=>'CustomerController@showOneCustomerGadaiByCawangan']);
$router->post('customers/{kodcaw}',['uses'=>'CustomerController@create']);