diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2016-07-21 21:05:42 +0300 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2016-07-22 11:23:09 +0300 |
commit | 82c51987556ff7a7acaaea4f936eba2f0f23908c (patch) | |
tree | aecaf46045b567c182df24046312f849a8885e97 /appinfo | |
parent | 603b00199c0b5981a998cede7e7f0ae64071a3d4 (diff) |
prepare API end-points
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/routes.php | 8 |
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'], + ] ]; |