-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroutes.php
More file actions
17 lines (13 loc) · 571 Bytes
/
Copy pathroutes.php
File metadata and controls
17 lines (13 loc) · 571 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
use Piksi\Middleware\JsonMiddleware;
use Slim\Routing\RouteCollectorProxy;
$app->group('', function (RouteCollectorProxy $group)
{
$group->get('/', '\Piksi\Controllers\MediaFolderController:Overview');
$group->get('/file', '\Piksi\Controllers\MediaFolderController:ServeFile');
$group->get('/about', '\Piksi\Controllers\SystemController:About');
});
$app->group('/api', function (RouteCollectorProxy $group)
{
$group->post('/system/log-missing-localization', '\Piksi\Controllers\SystemApiController:LogMissingLocalization');
})->add(JsonMiddleware::class);