PHRAS-2350_report_method_fix

This commit is contained in:
Filip Vilic
2018-12-19 10:12:14 +01:00
parent c2386d4e16
commit bff7dec769
3 changed files with 17 additions and 14 deletions

View File

@@ -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;