diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/app.php | 2 | ||||
-rw-r--r-- | config/routes.php | 16 |
2 files changed, 18 insertions, 0 deletions
diff --git a/config/app.php b/config/app.php index bfb66cf3..8ede567e 100644 --- a/config/app.php +++ b/config/app.php @@ -26,10 +26,12 @@ return [ \Engelsystem\Middleware\RequestHandlerServiceProvider::class, \Engelsystem\Middleware\SessionHandlerServiceProvider::class, \Engelsystem\Http\Validation\ValidationServiceProvider::class, + \Engelsystem\Http\RedirectServiceProvider::class, // Additional services \Engelsystem\Helpers\VersionServiceProvider::class, \Engelsystem\Mail\MailerServiceProvider::class, + \Engelsystem\Http\HttpClientServiceProvider::class, ], // Application middleware diff --git a/config/routes.php b/config/routes.php index e57d3079..e498b2b5 100644 --- a/config/routes.php +++ b/config/routes.php @@ -25,3 +25,19 @@ $route->get('/stats', 'Metrics\\Controller@stats'); // API $route->get('/api[/{resource:.+}]', 'ApiController@index'); + +// Administration +$route->addGroup( + '/admin', + function (RouteCollector $route) { + // Schedule + $route->addGroup( + '/schedule', + function (RouteCollector $route) { + $route->get('', 'Admin\\Schedule\\ImportSchedule@index'); + $route->post('/load', 'Admin\\Schedule\\ImportSchedule@loadSchedule'); + $route->post('/import', 'Admin\\Schedule\\ImportSchedule@importSchedule'); + } + ); + } +); |