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'); + }); }); });