diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2018-11-12 21:56:22 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2018-11-12 21:56:22 -0100 |
commit | 96d5e69deea598d901ff074504aa17ed1f18b8ce (patch) | |
tree | 23f9a0951a5f60f255531aef325d0563f3a42b3b /appinfo | |
parent | 88ebb11dbd499361e4bbe0fdd5b729aaa4fb68ed (diff) |
new routes
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/routes.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php index 5b894353..5505d745 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -12,25 +12,27 @@ return [ ['name' => 'Navigation#navigate', 'url' => '/', 'verb' => 'GET'], ['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#public', 'url' => '/{username}', 'verb' => 'GET'], +// ['name' => 'Navigation#public', 'url' => '/{username}', 'verb' => 'GET'], // ['name' => 'Account#create', 'url' => '/local/account/{username}', 'verb' => 'POST'], ['name' => 'Account#info', 'url' => '/local/account/{username}', 'verb' => 'GET'], - ['name' => 'ActivityPub#sharedInbox', 'url' => '/inbox', 'verb' => 'POST'], ['name' => 'ActivityPub#actor', 'url' => '/users/{username}', 'verb' => 'GET'], - ['name' => 'ActivityPub#aliasactor', 'url' => '/@{username}', 'verb' => 'GET'], + ['name' => 'ActivityPub#actorAlias', 'url' => '/@{username}', 'verb' => 'GET'], ['name' => 'ActivityPub#inbox', 'url' => '/@{username}/inbox', 'verb' => 'POST'], + ['name' => 'ActivityPub#sharedInbox', 'url' => '/inbox', 'verb' => 'POST'], ['name' => 'ActivityPub#outbox', 'url' => '/@{username}/outbox', 'verb' => 'POST'], ['name' => 'ActivityPub#followers', 'url' => '/@{username}/followers', 'verb' => 'GET'], ['name' => 'ActivityPub#following', 'url' => '/@{username}/following', 'verb' => 'GET'], - - ['name' => 'SocialPub#displayPost', 'url' => '/@{username}/{postId}', 'verb' => 'GET'] - , ['name' => 'ActivityPub#test', 'url' => '/inbox/{username}', 'verb' => 'POST'], + ['name' => 'SocialPub#displayPost', 'url' => '/@{username}/{postId}', 'verb' => 'GET'], + + ['name' => 'Local#newPost', 'url' => '/api/v1/post', 'verb' => 'POST'], + ['name' => 'Local#timeline', 'url' => '/api/v1/timeline', 'verb' => 'PUT'], + ['name' => 'Local#direct', 'url' => '/api/v1/direct', 'verb' => 'PUT'] ] ]; |