summaryrefslogtreecommitdiffstats
path: root/appinfo/routes.php
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2016-05-10 22:53:03 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2016-05-10 22:53:03 +0200
commit19ce49191a6bfbb876b9a05ece6fe72846a1de46 (patch)
tree387bd79d713d0cae828c7bcdf527da34f5b541a9 /appinfo/routes.php
parentbff96deb69446acb28bcd9d9b74855818040fb83 (diff)
Add route for api levels
Diffstat (limited to 'appinfo/routes.php')
-rw-r--r--appinfo/routes.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 33c333dd0..eb5339bdd 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -55,6 +55,9 @@ return ['routes' => [
['name' => 'export#opml', 'url' => '/export/opml', 'verb' => 'GET'],
['name' => 'export#articles', 'url' => '/export/articles', 'verb' => 'GET'],
+// general API
+['name' => 'api#index', 'url' => '/api', 'verb' => 'GET'],
+
// API 1.2
['name' => 'user_api#index', 'url' => '/api/v1-2/user', 'verb' => 'GET'],
['name' => 'user_api#avatar', 'url' => '/api/v1-2/user/avatar', 'verb' => 'GET'],