PHRAS-2327_report_refacto_41

This commit is contained in:
Filip Vilic
2018-12-11 13:15:03 +01:00
parent 35d0b0fad2
commit eec09e55cd
58 changed files with 13589 additions and 8931 deletions

View File

@@ -58,20 +58,27 @@ class ProdReportControllerProvider implements ControllerProviderInterface, Servi
public function connect(Application $app)
{
$controllers = $this->createAuthenticatedCollection($app);
$controllers
->get('/', 'controller.prod.report:indexAction')
;
$controllers
->get('/connections/{sbasId}/', 'controller.prod.report:connectionsAction')
->assert('sbasId', '\d+')
->bind('report2_connections')
;
$controllers
->get('/downloads/{sbasId}/', 'controller.prod.report:downloadsAction')
->assert('sbasId', '\d+')
->bind('report2_downloads')
;
$controllers
->get('/records/{sbasId}/', 'controller.prod.report:recordsAction')
->assert('sbasId', '\d+')
->bind('report2_records')
;
return $controllers;