summaryrefslogtreecommitdiffstats
path: root/appinfo
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2020-08-01 00:12:01 -0100
committerMaxence Lange <maxence@artificial-owl.com>2020-08-01 00:12:01 -0100
commit58f22f961da9a92604814dd3aa1e1f2529956d10 (patch)
tree922a1db7aa9a5c3d2e58ce3aecf4f1cdabf87d5b /appinfo
parent3fb6ed3ef5426c59805137d99152ff3faa0710b7 (diff)
remote testing
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/routes.php19
1 files changed, 13 insertions, 6 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index e462d5dd..73e6802d 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -37,9 +37,10 @@ use OCA\Social\Service\CurlService;
return [
'routes' => [
['name' => 'Navigation#navigate', 'url' => '/', 'verb' => 'GET'],
- ['name' => 'Navigation#test', 'url' => '/test', 'verb' => 'GET'],
+ ['name' => 'Config#remote', 'url' => '/test/{account}/', 'verb' => 'GET'],
+ ['name' => 'Config#local', 'url' => '/local/', 'verb' => 'GET'],
[
- 'name' => 'Navigation#timeline', 'url' => '/timeline/{path}', 'verb' => 'GET',
+ 'name' => 'Navigation#timeline', 'url' => '/timeline/{path}', 'verb' => 'GET',
'requirements' => ['path' => '.+'],
'defaults' => ['path' => '']
],
@@ -92,8 +93,14 @@ return [
['name' => 'Local#currentFollowing', 'url' => '/api/v1/current/following', 'verb' => 'GET'],
['name' => 'Local#accountInfo', 'url' => '/api/v1/account/{username}/info', 'verb' => 'GET'],
- ['name' => 'Local#accountFollowers', 'url' => '/api/v1/account/{username}/followers', 'verb' => 'GET'],
- ['name' => 'Local#accountFollowing', 'url' => '/api/v1/account/{username}/following', 'verb' => 'GET'],
+ [
+ 'name' => 'Local#accountFollowers', 'url' => '/api/v1/account/{username}/followers',
+ 'verb' => 'GET'
+ ],
+ [
+ 'name' => 'Local#accountFollowing', 'url' => '/api/v1/account/{username}/following',
+ 'verb' => 'GET'
+ ],
['name' => 'Local#globalAccountInfo', 'url' => '/api/v1/global/account/info', 'verb' => 'GET'],
['name' => 'Local#globalActorInfo', 'url' => '/api/v1/global/actor/info', 'verb' => 'GET'],
@@ -101,9 +108,9 @@ return [
['name' => 'Local#globalAccountsSearch', 'url' => '/api/v1/global/accounts/search', 'verb' => 'GET'],
['name' => 'Local#globalTagsSearch', 'url' => '/api/v1/global/tags/search', 'verb' => 'GET'],
-// ['name' => 'Local#documentsCache', 'url' => '/api/v1/documents/cache', 'verb' => 'POST'],
+ // ['name' => 'Local#documentsCache', 'url' => '/api/v1/documents/cache', 'verb' => 'POST'],
- ['name' => 'Local#search', 'url' => '/api/v1/search', 'verb' => 'GET'],
+ ['name' => 'Local#search', 'url' => '/api/v1/search', 'verb' => 'GET'],
['name' => 'Queue#asyncForRequest', 'url' => CurlService::ASYNC_REQUEST_TOKEN, 'verb' => 'POST'],