Remove security on NanoSante pdf-viewer endpoint

This commit is contained in:
Djery-Tom 2022-02-16 15:08:12 +01:00
parent 883fa9cd17
commit d9090d3bf8
1 changed files with 49 additions and 46 deletions

View File

@ -202,52 +202,55 @@ $router->get('/geocode', 'HelperController@getGoogleGeocoding');
/**
* Routes for NanoSante Service
*/
$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('', 'NanoSanteServiceController@get');
$router->get('networks', 'NanoSanteServiceController@get');
$router->put('{id}/add-beneficiaries', 'NanoSanteServiceController@put');
$router->put('{id}/delete-beneficiaries', 'NanoSanteServiceController@put');
$router->put('{id}/stop', 'NanoSanteServiceController@put');
$router->put('{id}/renew', 'NanoSanteServiceController@put');
// Subscriptions $router->put('{id}/stop', 'InsuranceController@stopInsurance');
$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');
$router->put('{id}/pay', 'NanoSanteServiceController@put');
$router->get('', 'NanoSanteServiceController@get');
});
});
// Insurances routes
$router->group(['prefix' => '/insured'], function () use ($router) {
//Search
$router->get('', 'NanoSanteServiceController@get');
});
$router->get('drugs-and-devices', 'NanoSanteServiceController@get');
$router->post('drugs-and-devices', 'NanoSanteServiceController@post');
$router->get('provider-classes', 'NanoSanteServiceController@get');
$router->get('acts', 'NanoSanteServiceController@get');
$router->get('health-care-sheets', 'NanoSanteServiceController@get');
$router->put('health-care-sheets', 'NanoSanteServiceController@put');
$router->post('health-care-sheets/performances-amount', 'NanoSanteServiceController@post');
$router->post('health-care-sheets/consultation', 'NanoSanteServiceController@post');
$router->post('health-care-sheets/execution', 'NanoSanteServiceController@post');
$router->get('health-care-sheets/{id}', 'NanoSanteServiceController@get');
$router->put('health-care-sheets/{id}', 'NanoSanteServiceController@put');
$router->get('generate-invoice', 'NanoSanteServiceController@get');
$router->get('invoices', 'NanoSanteServiceController@get');
$router->group(['prefix' => '/'.config('services.nano_sante_service.name')], function () use ($router){
$router->get('pdf-viewer', 'NanoSanteServiceController@get');
$router->get('authorizations-care-requests', 'NanoSanteServiceController@get');
$router->post('authorizations-care-requests', 'NanoSanteServiceController@post');
$router->group(['middleware' => 'auth:api'], function () use ($router){
// Insurances routes
$router->group(['prefix' => '/insurances'], function () use ($router) {
$router->get('', 'NanoSanteServiceController@get');
$router->get('networks', 'NanoSanteServiceController@get');
$router->put('{id}/add-beneficiaries', 'NanoSanteServiceController@put');
$router->put('{id}/delete-beneficiaries', 'NanoSanteServiceController@put');
$router->put('{id}/stop', 'NanoSanteServiceController@put');
$router->put('{id}/renew', 'NanoSanteServiceController@put');
// Subscriptions $router->put('{id}/stop', 'InsuranceController@stopInsurance');
$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');
$router->put('{id}/pay', 'NanoSanteServiceController@put');
$router->get('', 'NanoSanteServiceController@get');
});
});
// Insurances routes
$router->group(['prefix' => '/insured'], function () use ($router) {
//Search
$router->get('', 'NanoSanteServiceController@get');
});
$router->get('drugs-and-devices', 'NanoSanteServiceController@get');
$router->post('drugs-and-devices', 'NanoSanteServiceController@post');
$router->get('provider-classes', 'NanoSanteServiceController@get');
$router->get('acts', 'NanoSanteServiceController@get');
$router->get('health-care-sheets', 'NanoSanteServiceController@get');
$router->put('health-care-sheets', 'NanoSanteServiceController@put');
$router->post('health-care-sheets/performances-amount', 'NanoSanteServiceController@post');
$router->post('health-care-sheets/consultation', 'NanoSanteServiceController@post');
$router->post('health-care-sheets/execution', 'NanoSanteServiceController@post');
$router->get('health-care-sheets/{id}', 'NanoSanteServiceController@get');
$router->put('health-care-sheets/{id}', 'NanoSanteServiceController@put');
$router->get('generate-invoice', 'NanoSanteServiceController@get');
$router->get('invoices', 'NanoSanteServiceController@get');
$router->get('authorizations-care-requests', 'NanoSanteServiceController@get');
$router->post('authorizations-care-requests', 'NanoSanteServiceController@post');
});
});