api for customer online update

This commit is contained in:
LAPTOP-DGCU80CH\user1
2020-11-17 10:47:35 +08:00
parent cb3a5b91c2
commit 057059feb0
6 changed files with 93 additions and 11 deletions
+5 -2
View File
@@ -27,7 +27,8 @@ $router->group(['prefix'=>'api'], function () use ($router){
$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']);
// $router->put('customers/{id}', ['uses' => 'CustomerController@update']);
$router->put('customersonline/{nokp}', ['uses' => 'CustomerController@updateOnline']);
//Gadai API
$router->get('gadai',['uses'=>'GadaiController@showAllGadais']);
@@ -55,7 +56,9 @@ $router->group(['prefix'=>'api'], function () use ($router){
$router->post('marhun/{kodcaw}',['uses'=>'MarhunController@create']);
$router->put('marhun/{id}', ['uses' => 'MarhunController@update']);
$router->get('jemas/{kodcaw}',['uses'=>'MarhunController@getAllJemas']);
$router->get('jemas',['uses'=>'MarhunController@getAllJemas']);
$router->get('jemas/nama_marhun',['uses'=>'MarhunController@getMarhunName']);
//Harga Emas API