summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-11-20 18:55:56 +0100
committermsquare <msquare@notrademark.de>2019-06-12 10:20:08 +0200
commite948091066e4893b1b823fc80db1c1ebba174b53 (patch)
tree1bc34bf1f476abcafe536336955916ac9d929a68 /config
parent93e578e555b6e40c1e26d85e4f32b87577f54def (diff)
Replaced old /api endpoint with ApiController
Diffstat (limited to 'config')
-rw-r--r--config/routes.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/routes.php b/config/routes.php
index 8322cb2f..b9e3646a 100644
--- a/config/routes.php
+++ b/config/routes.php
@@ -10,3 +10,6 @@ $route->get('/credits', 'CreditsController@index');
// Stats
$route->get('/metrics', 'Metrics\\Controller@metrics');
$route->get('/stats', 'Metrics\\Controller@stats');
+
+// API
+$route->get('/api[/{resource:.+}]', 'ApiController@index');