summaryrefslogtreecommitdiffstats
path: root/appinfo
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2018-11-24 13:14:30 -0100
committerJulius Härtl <jus@bitgrid.net>2018-11-27 10:24:50 +0100
commit832302d678f1ca14dad2ecf2a157ef29a39c687d (patch)
treee4bf33a5ea64c95ea756678e58670c6a7ac2fb79 /appinfo
parentd8f23b6fedb40a9d024c3ef02c9beb442f0f6dd4 (diff)
new routes
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/routes.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 293d4bb7..6f86395e 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -21,8 +21,8 @@ return [
'requirements' => ['path' => '.+'], 'defaults' => ['path' => '']
],
['name' => 'Navigation#public', 'url' => '/{username}', 'verb' => 'GET'],
- ['name' => 'Navigation#documentsGet', 'url' => '/documents/get', 'verb' => 'GET'],
- ['name' => 'Navigation#documentsGetPublic', 'url' => '/documents/public', 'verb' => 'GET'],
+ ['name' => 'Navigation#documentGet', 'url' => '/document/get', 'verb' => 'GET'],
+ ['name' => 'Navigation#documentGetPublic', 'url' => '/document/public', 'verb' => 'GET'],
// ['name' => 'Account#create', 'url' => '/local/account/{username}', 'verb' => 'POST'],
['name' => 'Account#info', 'url' => '/local/account/{username}', 'verb' => 'GET'],
@@ -50,6 +50,7 @@ return [
['name' => 'Local#accountUnfollow', 'url' => '/api/v1/account/follow', 'verb' => 'DELETE'],
['name' => 'Local#accountInfo', 'url' => '/api/v1/account/info', 'verb' => 'GET'],
['name' => 'Local#actorInfo', 'url' => '/api/v1/actor/info', 'verb' => 'GET'],
+ ['name' => 'Local#documentsCache', 'url' => '/api/v1/documents/cache', 'verb' => 'POST'],
[
'name' => 'Config#setCloudAddress', 'url' => '/api/v1/config/cloudAddress',