diff --git a/lib/Alchemy/Phrasea/Report/ControllerProvider/ApiReportControllerProvider.php b/lib/Alchemy/Phrasea/Report/ControllerProvider/ApiReportControllerProvider.php index 71134c7845..321f7f7897 100644 --- a/lib/Alchemy/Phrasea/Report/ControllerProvider/ApiReportControllerProvider.php +++ b/lib/Alchemy/Phrasea/Report/ControllerProvider/ApiReportControllerProvider.php @@ -85,22 +85,26 @@ class ApiReportControllerProvider extends Api implements ControllerProviderInter $controllers->before(new OAuthListener()); $controllers - ->get('/', 'controller.api.v2.report:rootAction') + ->match('/', 'controller.api.v2.report:rootAction') + ->method('GET|POST') ; $controllers - ->get('/connections/{sbasId}/', 'controller.api.v2.report:connectionsAction') + ->match('/connections/{sbasId}/', 'controller.api.v2.report:connectionsAction') ->assert('sbasId', '\d+') + ->method('GET|POST') ; $controllers - ->get('/downloads/{sbasId}/', 'controller.api.v2.report:downloadsAction') + ->match('/downloads/{sbasId}/', 'controller.api.v2.report:downloadsAction') ->assert('sbasId', '\d+') + ->method('GET|POST') ; $controllers - ->get('/records/{sbasId}/', 'controller.api.v2.report:recordsAction') + ->match('/records/{sbasId}/', 'controller.api.v2.report:recordsAction') ->assert('sbasId', '\d+') + ->method('GET|POST') ; return $controllers; diff --git a/lib/Alchemy/Phrasea/Report/ControllerProvider/ProdReportControllerProvider.php b/lib/Alchemy/Phrasea/Report/ControllerProvider/ProdReportControllerProvider.php index b5d7bb5839..12c7710fac 100644 --- a/lib/Alchemy/Phrasea/Report/ControllerProvider/ProdReportControllerProvider.php +++ b/lib/Alchemy/Phrasea/Report/ControllerProvider/ProdReportControllerProvider.php @@ -60,25 +60,24 @@ class ProdReportControllerProvider implements ControllerProviderInterface, Servi $controllers = $this->createAuthenticatedCollection($app); $controllers - ->get('/', 'controller.prod.report:indexAction') - ; - - $controllers - ->get('/connections/{sbasId}/', 'controller.prod.report:connectionsAction') + ->match('/connections/{sbasId}/', 'controller.prod.report:connectionsAction') ->assert('sbasId', '\d+') ->bind('report2_connections') + ->method('GET|POST') ; $controllers - ->get('/downloads/{sbasId}/', 'controller.prod.report:downloadsAction') + ->match('/downloads/{sbasId}/', 'controller.prod.report:downloadsAction') ->assert('sbasId', '\d+') ->bind('report2_downloads') + ->method('GET|POST') ; $controllers - ->get('/records/{sbasId}/', 'controller.prod.report:recordsAction') + ->match('/records/{sbasId}/', 'controller.prod.report:recordsAction') ->assert('sbasId', '\d+') ->bind('report2_records') + ->method('GET|POST') ; return $controllers; diff --git a/templates/web/report/report_layout_child.html.twig b/templates/web/report/report_layout_child.html.twig index a580334b35..9bb35430cc 100644 --- a/templates/web/report/report_layout_child.html.twig +++ b/templates/web/report/report_layout_child.html.twig @@ -2,7 +2,7 @@ {% block report_connections_layout %}