summaryrefslogtreecommitdiffstats
path: root/appinfo/routes.php
diff options
context:
space:
mode:
Diffstat (limited to 'appinfo/routes.php')
-rw-r--r--appinfo/routes.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index fe1daf03..303816d6 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -68,16 +68,19 @@ return [
['name' => 'OStatus#getLink', 'url' => '/api/v1/ostatus/link/{local}/{account}', 'verb' => 'GET'],
// OAuth
+ ['name' => 'OAuth#nodeinfo', 'url' => '/.well-known/nodeinfo', 'verb' => 'GET'],
+ ['name' => 'OAuth#nodeinfo2', 'url' => '/nodeinfo/2.0', 'verb' => 'GET'],
['name' => 'OAuth#apps', 'url' => '/api/v1/apps', 'verb' => 'POST'],
['name' => 'OAuth#authorize', 'url' => '/oauth/authorize', 'verb' => 'GET'],
['name' => 'OAuth#token', 'url' => '/oauth/token', 'verb' => 'POST'],
['name' => 'OAuth#appsCredentials', 'url' => '/api/v1/apps/verify_credentials', 'verb' => 'GET'],
+
+ // Api for 3rd party
[
- 'name' => 'OAuth#accountsCredentials', 'url' => '/api/v1/accounts/verify_credentials',
+ 'name' => 'Api#verifyCredentials', 'url' => '/api/v1/accounts/verify_credentials',
'verb' => 'GET'
],
-
- // Api for 3rd party
+ ['name' => 'Api#instance', 'url' => '/api/v1/instance/', 'verb' => 'GET'],
['name' => 'Api#timelines', 'url' => '/api/v1/timelines/{timeline}/', 'verb' => 'GET'],
// Api for local front-end