Update nano service endpoints

This commit is contained in:
Djery-Tom 2021-10-27 13:45:34 +01:00
parent c421290635
commit b1e891a2a0
1 changed files with 8 additions and 4 deletions

View File

@ -201,10 +201,14 @@ $router->get('/geocode', 'HelperController@getGoogleGeocoding');
$router->group(['prefix' => '/'.config('services.nano_sante_service.name'),'middleware' => 'auth:api'], function () use ($router){
// Insurances routes
$router->group(['prefix' => '/insurances'], function () use ($router) {
$router->get('countries/{countryId}', 'NanoSanteServiceController@get');
$router->post('bonus-amount', 'NanoSanteServiceController@post');
$router->post('subscribe', 'NanoSanteServiceController@post');
$router->post('upload-images', 'NanoSanteServiceController@postWithFiles');
$router->get('', 'NanoSanteServiceController@get');
$router->group(['prefix' => '/subscriptions'], function () use ($router) {
$router->post('bonus-amount', 'NanoSanteServiceController@post');
$router->post('upload-images', 'NanoSanteServiceController@postWithFiles');
$router->post('', 'NanoSanteServiceController@post');
$router->put('{id}/validate', 'NanoSanteServiceController@put');
$router->put('{id}/reject', 'NanoSanteServiceController@put');
});
});
});