diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2018-11-22 10:46:11 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2018-11-22 10:46:11 -0100 |
commit | 6a06fd22b13a005afddbbee4af5c885e79f08db6 (patch) | |
tree | 95adb1027fb9b03a3d7efe2aa6a13522d1a8fb24 /appinfo | |
parent | 3e7973451280e53dbfa76b71a21aef19d50a83cd (diff) |
new routes
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/routes.php | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php index d7c51695..3703c956 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -12,11 +12,13 @@ return [ ['name' => 'Navigation#navigate', 'url' => '/', 'verb' => 'GET'], ['name' => 'Navigation#test', 'url' => '/test', 'verb' => 'GET'], - ['name' => 'Navigation#timeline', 'url' => '/timeline/{path}', 'verb' => 'GET', - 'requirements' => ['path' => '.+'], 'defaults' => ['path' => ''] + [ + 'name' => 'Navigation#timeline', 'url' => '/timeline/{path}', 'verb' => 'GET', + 'requirements' => ['path' => '.+'], 'defaults' => ['path' => ''] ], - ['name' => 'Navigation#account', 'url' => '/account/{path}', 'verb' => 'GET', - 'requirements' => ['path' => '.+'], 'defaults' => ['path' => ''] + [ + 'name' => 'Navigation#account', 'url' => '/account/{path}', 'verb' => 'GET', + 'requirements' => ['path' => '.+'], 'defaults' => ['path' => ''] ], // ['name' => 'Navigation#public', 'url' => '/{username}', 'verb' => 'GET'], @@ -36,16 +38,21 @@ return [ ['name' => 'SocialPub#displayPost', 'url' => '/@{username}/{postId}', 'verb' => 'GET'], + ['name' => 'Local#streamHome', 'url' => '/api/v1/stream/home', 'verb' => 'GET'], + ['name' => 'Local#streamTimeline', 'url' => '/api/v1/stream/timeline', 'verb' => 'GET'], + ['name' => 'Local#streamFederated', 'url' => '/api/v1/stream/federated', 'verb' => 'GET'], + ['name' => 'Local#streamDirect', 'url' => '/api/v1/stream/direct', 'verb' => 'GET'], ['name' => 'Local#postCreate', 'url' => '/api/v1/post', 'verb' => 'POST'], ['name' => 'Local#postDelete', 'url' => '/api/v1/post', 'verb' => 'DELETE'], - ['name' => 'Local#timeline', 'url' => '/api/v1/timeline', 'verb' => 'GET'], - ['name' => 'Local#direct', 'url' => '/api/v1/direct', 'verb' => 'PUT'], ['name' => 'Local#accountsSearch', 'url' => '/api/v1/accounts/search', 'verb' => 'GET'], ['name' => 'Local#accountFollow', 'url' => '/api/v1/account/follow', 'verb' => 'PUT'], ['name' => 'Local#accountUnfollow', 'url' => '/api/v1/account/follow', 'verb' => 'DELETE'], ['name' => 'Local#actorInfo', 'url' => '/api/v1/actor/info', 'verb' => 'GET'], - ['name' => 'Config#setCloudAddress', 'url' => '/api/v1/config/cloudAddress', 'verb' => 'POST'], + [ + 'name' => 'Config#setCloudAddress', 'url' => '/api/v1/config/cloudAddress', + 'verb' => 'POST' + ], -] + ] ]; |