Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/serverinfo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2016-07-21 21:05:42 +0300
committerBjoern Schiessle <bjoern@schiessle.org>2016-07-22 11:23:09 +0300
commit82c51987556ff7a7acaaea4f936eba2f0f23908c (patch)
treeaecaf46045b567c182df24046312f849a8885e97 /appinfo
parent603b00199c0b5981a998cede7e7f0ae64071a3d4 (diff)
prepare API end-points
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/routes.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 386e61f..a6db72e 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -27,9 +27,13 @@
* The controller class has to be registered in the application.php file since
* it's instantiated in there
*/
+
return [
'routes' => [
['name' => 'page#index', 'url' => '/', 'verb' => 'GET'],
- ['name' => 'page#do_echo', 'url' => '/echo', 'verb' => 'POST'],
- ]
+ ['name' => 'page#update', 'url' => '/update', 'verb' => 'GET'],
+ ],
+ 'ocs' => [
+ ['name' => 'api#info', 'url' => '/api/v1/info', 'verb' => 'GET'],
+ ]
];