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-11-19 10:35:10 +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' => '']
|
|
|
|
],
|
|
|
|
// ['name' => 'Navigation#public', 'url' => '/{username}', 'verb' => 'GET'],
|
2018-10-23 13:37:18 +00:00
|
|
|
|
2018-09-20 07:42:52 +00:00
|
|
|
|
2018-11-19 10:35:10 +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'],
|
|
|
|
|
2018-11-20 22:38:36 +00:00
|
|
|
['name' => 'Local#postCreate', 'url' => '/api/v1/post', 'verb' => 'POST'],
|
2018-11-20 22:40:10 +00:00
|
|
|
['name' => 'Local#postDelete', 'url' => '/api/v1/post', 'verb' => 'DELETE'],
|
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-16 11:48:31 +00:00
|
|
|
['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'],
|
2018-11-19 20:54:26 +00:00
|
|
|
['name' => 'Local#actorInfo', 'url' => '/api/v1/actor/info', 'verb' => 'GET'],
|
2018-09-28 11:41:24 +00:00
|
|
|
|
2018-11-19 20:54:26 +00:00
|
|
|
['name' => 'Config#setCloudAddress', 'url' => '/api/v1/config/cloudAddress', 'verb' => 'POST'],
|
|
|
|
|
|
|
|
]
|
2018-08-26 09:35:53 +00:00
|
|
|
];
|