|
@@ -16,7 +16,7 @@ discard block |
|
|
block discarded – undo |
|
16
|
16
|
$app = new App; |
|
17
|
17
|
$app['debug'] = true; |
|
18
|
18
|
|
|
19
|
|
-$app['diagram.sequence.provider'] = $app->share(function ($app) { |
|
|
19
|
+$app['diagram.sequence.provider'] = $app->share(function($app) { |
|
20
|
20
|
return new SequenceProvider($app['db']); |
|
21
|
21
|
}); |
|
22
|
22
|
|
|
@@ -24,11 +24,11 @@ discard block |
|
|
block discarded – undo |
|
24
|
24
|
'twig.path' => __DIR__ . '/../resources/views', |
|
25
|
25
|
]); |
|
26
|
26
|
|
|
27
|
|
-$app->get('/{organisation}/{days}/{scale}', function () use ($app) { |
|
|
27
|
+$app->get('/{organisation}/{days}/{scale}', function() use ($app) { |
|
28
|
28
|
return $app['twig']->render('index.twig'); |
|
29
|
29
|
}); |
|
30
|
30
|
|
|
31
|
|
-$app->get('/api/{organisation}/{days}/{scale}', function ($organisation, $days, $scale) use ($app) { |
|
|
31
|
+$app->get('/api/{organisation}/{days}/{scale}', function($organisation, $days, $scale) use ($app) { |
|
32
|
32
|
return new JsonResponse($app['diagram.sequence.provider']->getSequences($organisation, $days, $scale)); |
|
33
|
33
|
}); |
|
34
|
34
|
|
Please login to merge, or discard this patch.