This commit is contained in:
Afiq
2021-01-10 09:30:35 +08:00
parent b83d669b45
commit 3aafe70963
2 changed files with 29 additions and 5 deletions
+1 -4
View File
@@ -23,16 +23,13 @@ $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/{ic}/gadai/{status}',['uses'=>'CustomerController@showOneCustomerGadai']);
$router->get('customers/{ic}/gadai/{status}/{kodcaw}',['uses'=>'CustomerController@showOneCustomerGadaiByCawangan']);
$router->post('customers/create/{kodcaw}',['uses'=>'CustomerController@createCustomer']);
$router->delete('customers/{kodcaw}/{nokp}', ['uses' => 'CustomerController@delete']);
$router->put('customers/update/{nokp}', ['uses' => 'CustomerController@customerUpdate']);
$router->put('customers/update/kaunter/{nokp}', ['uses' => 'CustomerController@customerUpdateKaunter']);
$router->get('customers/laporan/{kodcaw}/{tarikh}',['uses'=>'CustomerController@getLaporanCustomers']);
$router->get('customers/latest/{kodcaw}',['uses'=>'CustomerController@getLatestCustomer']);
//Gadai API