2018-08-26 09:35:53 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Create your routes in here. The name is the lowercase name of the controller
|
|
|
|
* without the controller part, the stuff after the hash is the method.
|
|
|
|
* e.g. page#index -> OCA\MailTest\Controller\PageController->index()
|
|
|
|
*
|
|
|
|
* The controller class has to be registered in the application.php file since
|
|
|
|
* it's instantiated in there
|
|
|
|
*/
|
|
|
|
return [
|
2018-09-20 07:42:52 +00:00
|
|
|
'routes' => [
|
|
|
|
['name' => 'Navigation#navigate', 'url' => '/', 'verb' => 'GET'],
|
2018-11-15 11:26:25 +00:00
|
|
|
['name' => 'Navigation#test', 'url' => '/test', 'verb' => 'GET'],
|
|
|
|
|
2018-10-23 13:37:18 +00:00
|
|
|
['name' => 'Navigation#timeline', 'url' => '/timeline/{path}', 'verb' => 'GET', 'requirements' => ['path' => '.+'], 'defaults' => ['path' => '']],
|
|
|
|
['name' => 'Navigation#account', 'url' => '/account/{path}', 'verb' => 'GET', 'requirements' => ['path' => '.+'], 'defaults' => ['path' => '']],
|
2018-11-12 22:56:22 +00:00
|
|
|
// ['name' => 'Navigation#public', 'url' => '/{username}', 'verb' => 'GET'],
|
2018-10-23 13:37:18 +00:00
|
|
|
|
2018-09-20 07:42:52 +00:00
|
|
|
|
2018-10-02 10:25:36 +00:00
|
|
|
// ['name' => 'Account#create', 'url' => '/local/account/{username}', 'verb' => 'POST'],
|
2018-10-23 13:37:18 +00:00
|
|
|
['name' => 'Account#info', 'url' => '/local/account/{username}', 'verb' => 'GET'],
|
|
|
|
|
2018-09-28 11:41:24 +00:00
|
|
|
|
|
|
|
['name' => 'ActivityPub#actor', 'url' => '/users/{username}', 'verb' => 'GET'],
|
2018-11-12 22:56:22 +00:00
|
|
|
['name' => 'ActivityPub#actorAlias', 'url' => '/@{username}', 'verb' => 'GET'],
|
2018-09-28 11:41:24 +00:00
|
|
|
['name' => 'ActivityPub#inbox', 'url' => '/@{username}/inbox', 'verb' => 'POST'],
|
2018-11-12 22:56:22 +00:00
|
|
|
['name' => 'ActivityPub#sharedInbox', 'url' => '/inbox', 'verb' => 'POST'],
|
2018-09-28 11:41:24 +00:00
|
|
|
['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' => 'ActivityPub#test', 'url' => '/inbox/{username}', 'verb' => 'POST'],
|
|
|
|
|
2018-11-12 22:56:22 +00:00
|
|
|
['name' => 'SocialPub#displayPost', 'url' => '/@{username}/{postId}', 'verb' => 'GET'],
|
|
|
|
|
|
|
|
['name' => 'Local#newPost', 'url' => '/api/v1/post', 'verb' => 'POST'],
|
2018-11-13 14:20:43 +00:00
|
|
|
['name' => 'Local#timeline', 'url' => '/api/v1/timeline', 'verb' => 'GET'],
|
2018-11-14 12:04:33 +00:00
|
|
|
['name' => 'Local#direct', 'url' => '/api/v1/direct', 'verb' => 'PUT'],
|
2018-11-14 11:00:05 +00:00
|
|
|
['name' => 'Local#accountSearch', 'url' => '/api/v1/accounts/search', 'verb' => 'GET'],
|
|
|
|
['name' => 'Local#actorInfo', 'url' => '/api/v1/actor/info', 'verb' => 'GET']
|
2018-09-28 11:41:24 +00:00
|
|
|
|
2018-10-01 12:14:23 +00:00
|
|
|
]
|
2018-08-26 09:35:53 +00:00
|
|
|
];
|