add api gadai customer base on cawangan

This commit is contained in:
Afiq Zakwan
2020-10-27 23:37:52 +08:00
parent bfbeb793b0
commit 6bfa1d12ad
2 changed files with 26 additions and 0 deletions
+1
View File
@@ -24,6 +24,7 @@ $router->group(['prefix'=>'api'], function () use ($router){
// $router->get('customers/{id}',['uses'=>'CustomerController@showOneCustomer']);
$router->get('customers/{ic}',['uses'=>'CustomerController@showOneCustomerByIC']);
$router->get('customers/{ic}/gadai/{status}',['uses'=>'CustomerController@showOneCustomerGadai']);
$router->get('customers/{ic}/gadai/{status}/{kodcaw}',['uses'=>'CustomerController@showOneCustomerGadaiByCawangan']);
$router->post('customers',['uses'=>'CustomerController@create']);
$router->delete('customers/{id}', ['uses' => 'CustomerController@delete']);
$router->put('customers/{id}', ['uses' => 'CustomerController@update']);