From b1e891a2a03b44f752c695c138c6154e36324a3e Mon Sep 17 00:00:00 2001 From: Djery-Tom Date: Wed, 27 Oct 2021 13:45:34 +0100 Subject: [PATCH] Update nano service endpoints --- routes/web.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/routes/web.php b/routes/web.php index d4e27e2..6c73d0a 100755 --- a/routes/web.php +++ b/routes/web.php @@ -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'); + }); }); });