From 42721e95726559b4a601240bb5b0fe4e5d755b2a Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Wed, 27 Nov 2019 23:43:21 +0100 Subject: Added Schedule parsing and replaced old Fahrplan importer Resolves #553 (Change Frab Import from xCal to XML) Resolves #538 (Feature Request: Multi Frab Import) --- config/app.php | 1 + config/routes.php | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) (limited to 'config') 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'); + } + ); + } +); -- cgit v1.2.3-54-g00ecf