mobile api

This commit is contained in:
Afiq
2021-01-02 09:30:00 +08:00
parent 5139a8ed50
commit 1c11993b6f
2 changed files with 62 additions and 1 deletions
+7 -1
View File
@@ -23,7 +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']);
@@ -189,3 +189,9 @@ $router->group(['prefix'=>'api'], function () use ($router){
$router->put('updatetagterima/{kodcaw}/{norujukan}',['uses'=>'TebusController@tagterimaupdate']);
});
$router->group(['prefix'=>'mobile'], function () use ($router){
$router->get('customers/{ic}',['uses'=>'CustomerController@showOneCustomerByICMobile']);
$router->get('customers/{ic}/gadai/{status}',['uses'=>'CustomerController@showOneCustomerGadaiMobile']);
$router->get('customers/{ic}/gadai/amaran/lelong',['uses'=>'CustomerController@show6BlnGadai']);
});