diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2020-08-28 01:35:57 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2020-08-28 01:36:19 -0100 |
commit | 8965acea039fc93b41f31d104c1b7330f11905df (patch) | |
tree | 23cdc662e920bfc578cfbf2a09a2bb5211f5ab6e /appinfo | |
parent | e986ca6a4f6596036f5ee32b4a70639c7f891492 (diff) |
oauth, first throw
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/routes.php | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php index 6fd49864..fe1daf03 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -40,9 +40,9 @@ return [ ['name' => 'Config#local', 'url' => '/local/', 'verb' => 'GET'], ['name' => 'Config#remote', 'url' => '/test/{account}/', 'verb' => 'GET'], [ - 'name' => 'Navigation#timeline', 'url' => '/timeline/{path}', 'verb' => 'GET', + 'name' => 'Navigation#timeline', 'url' => '/timeline/{path}', 'verb' => 'GET', 'requirements' => ['path' => '.+'], - 'defaults' => ['path' => ''] + 'defaults' => ['path' => ''] ], ['name' => 'Navigation#documentGet', 'url' => '/document/get', 'verb' => 'GET'], ['name' => 'Navigation#documentGetPublic', 'url' => '/document/public', 'verb' => 'GET'], @@ -62,21 +62,26 @@ return [ ['name' => 'ActivityPub#displayPost', 'url' => '/@{username}/{token}', 'verb' => 'GET'], + // OStatus ['name' => 'OStatus#subscribe', 'url' => '/ostatus/follow/', 'verb' => 'GET'], ['name' => 'OStatus#followRemote', 'url' => '/api/v1/ostatus/followRemote/{local}', 'verb' => 'GET'], ['name' => 'OStatus#getLink', 'url' => '/api/v1/ostatus/link/{local}/{account}', 'verb' => 'GET'], // OAuth - ['name' => 'ActivityStream#apps', 'url' => '/api/v1/apps', 'verb' => 'POST'], - ['name' => 'ActivityStream#authorize', 'url' => '/oauth/authorize', 'verb' => 'GET'], - ['name' => 'ActivityStream#token', 'url' => '/oauth/token', 'verb' => 'POST'], - ['name' => 'ActivityStream#appsCredentials', 'url' => '/api/v1/apps/verify_credentials', 'verb' => 'GET'], - ['name' => 'ActivityStream#accountsCredentials', 'url' => '/api/v1/accounts/verify_credentials', 'verb' => 'GET'], - - // New Local - ['name' => 'ActivityStream#timelines', 'url' => '/api/v1/timelines/{timeline}/', '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'], + [ + 'name' => 'OAuth#accountsCredentials', 'url' => '/api/v1/accounts/verify_credentials', + 'verb' => 'GET' + ], + // Api for 3rd party + ['name' => 'Api#timelines', 'url' => '/api/v1/timelines/{timeline}/', 'verb' => 'GET'], + // Api for local front-end + // TODO: front-end should be using the new ApiController ['name' => 'Local#streamHome', 'url' => '/api/v1/stream/home', 'verb' => 'GET'], ['name' => 'Local#streamNotifications', 'url' => '/api/v1/stream/notifications', 'verb' => 'GET'], ['name' => 'Local#streamTimeline', 'url' => '/api/v1/stream/timeline', 'verb' => 'GET'], |