|
@@ 185-192 (lines=8) @@
|
| 182 |
|
$controller->help($request); |
| 183 |
|
})->setName('custom.help'); |
| 184 |
|
|
| 185 |
|
$app->post('/custom/query', static function () use ($di, $app) { |
| 186 |
|
/** @var Controller\CustomController $controller */ |
| 187 |
|
$controller = $di['customController']; |
| 188 |
|
$request = $app->request(); |
| 189 |
|
$response = $app->response(); |
| 190 |
|
|
| 191 |
|
$controller->query($request, $response); |
| 192 |
|
})->setName('custom.query'); |
| 193 |
|
|
| 194 |
|
// Waterfall routes |
| 195 |
|
$app->get('/waterfall', static function () use ($di, $app) { |
|
@@ 201-208 (lines=8) @@
|
| 198 |
|
$controller->index(); |
| 199 |
|
})->setName('waterfall.list'); |
| 200 |
|
|
| 201 |
|
$app->get('/waterfall/data', static function () use ($di, $app) { |
| 202 |
|
/** @var Controller\WaterfallController $controller */ |
| 203 |
|
$controller = $di['waterfallController']; |
| 204 |
|
$request = $app->request(); |
| 205 |
|
$response = $app->response(); |
| 206 |
|
|
| 207 |
|
$controller->query($request, $response); |
| 208 |
|
})->setName('waterfall.data'); |
| 209 |
|
|
| 210 |
|
// Metrics |
| 211 |
|
$app->get('/metrics', static function () use ($di, $app) { |