add api for harga emas and marhun

This commit is contained in:
Zakwan Hamdan
2020-10-20 10:58:34 +08:00
parent 85cab92a3d
commit d566c2e499
8 changed files with 580 additions and 4 deletions
+10
View File
@@ -39,4 +39,14 @@ $router->group(['prefix'=>'api'], function () use ($router){
$router->post('lelong',['uses'=>'LelongController@create']);
$router->delete('lelong/{id}', ['uses' => 'LelongController@delete']);
$router->put('lelong/{id}', ['uses' => 'LelongController@update']);
//Marhun API
$router->get('marhun',['uses'=>'MarhunController@showAllMarhuns']);
$router->get('marhun/{norujukan}',['uses'=>'MarhunController@showOneLelong']);
$router->post('marhun',['uses'=>'MarhunController@create']);
$router->put('marhun/{id}', ['uses' => 'MarhunController@update']);
//Harga Emas API
$router->get('harga_emas',['uses'=>'HargaEmasController@showAllHargaEmas']);
$router->put('harga_emas',['uses'=>'HargaEmasController@update']);
});