diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2020-09-01 13:14:19 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2020-09-01 13:14:19 -0100 |
commit | 8e7cf73e85d98cf66c97181150e07eade03183ad (patch) | |
tree | 6d898cb5790322348f2a35e328ae9cb7a7ff4c29 /appinfo | |
parent | 8965acea039fc93b41f31d104c1b7330f11905df (diff) |
more endpoints
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/routes.php | 9 |
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 |