diff options
author | Joas Schilling <coding@schilljs.com> | 2016-10-28 17:11:32 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-10-31 16:30:32 +0300 |
commit | 8f19069ac1637739819298498cdd07c1d1b0775c (patch) | |
tree | 2d0178cd85461bb6862a8ef8c5e73afc7d4e33c4 /appinfo | |
parent | d8abc5e96c0e6d562a4756187149274c1fb07572 (diff) |
Only make new info available in v2
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/routes.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php index fca8e84..6c11dc3 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -21,8 +21,8 @@ return [ 'ocs' => [ - ['name' => 'Endpoint#listNotifications', 'url' => '/api/v1/notifications', 'verb' => 'GET'], - ['name' => 'Endpoint#getNotification', 'url' => '/api/v1/notifications/{id}', 'verb' => 'GET'], - ['name' => 'Endpoint#deleteNotification', 'url' => '/api/v1/notifications/{id}', 'verb' => 'DELETE'], + ['name' => 'Endpoint#listNotifications', 'url' => '/api/{apiVersion}/notifications', 'verb' => 'GET', 'requirements' => ['apiVersion' => 'v(1|2)']], + ['name' => 'Endpoint#getNotification', 'url' => '/api/{apiVersion}/notifications/{id}', 'verb' => 'GET', 'requirements' => ['apiVersion' => 'v(1|2)', 'id' => '\d+']], + ['name' => 'Endpoint#deleteNotification', 'url' => '/api/{apiVersion}/notifications/{id}', 'verb' => 'DELETE', 'requirements' => ['apiVersion' => 'v(1|2)', 'id' => '\d+']], ], ]; |