summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/app.php1
-rw-r--r--config/routes.php16
2 files changed, 17 insertions, 0 deletions
diff --git a/config/app.php b/config/app.php
index 970f80a5..e1001900 100644
--- a/config/app.php
+++ b/config/app.php
@@ -31,6 +31,7 @@ return [
// Additional services
\Engelsystem\Helpers\VersionServiceProvider::class,
\Engelsystem\Mail\MailerServiceProvider::class,
+ \Engelsystem\Http\GuzzleServiceProvider::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');
+ }
+ );
+ }
+);