diff options
author | Joas Schilling <coding@schilljs.com> | 2019-01-30 17:44:34 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-02-20 14:17:35 +0300 |
commit | 18aa82dabf3a00d34ce4e17010fd9bd67e0792d3 (patch) | |
tree | ca94214cb1e7c5336925f20b653f10f735c35af1 /appinfo/routes.php | |
parent | dda4b0d4eb4dbb65717d0227a4c737bf6d245d9f (diff) |
Do not allow changing/adding scripts via the Web
It's just too dangerous for now.
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'appinfo/routes.php')
-rw-r--r-- | appinfo/routes.php | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php index 697e53b92..302d7dea4 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -348,7 +348,6 @@ return [ /** * Commands */ - // TODO turn into a resource after https://github.com/nextcloud/server/pull/13714 is merged [ 'name' => 'Command#index', 'url' => '/api/{apiVersion}/command', @@ -358,23 +357,6 @@ return [ ], ], [ - 'name' => 'Command#create', - 'url' => '/api/{apiVersion}/command', - 'verb' => 'POST', - 'requirements' => [ - 'apiVersion' => 'v1', - ], - ], - [ - 'name' => 'Command#show', - 'url' => '/api/{apiVersion}/command/{id}', - 'verb' => 'GET', - 'requirements' => [ - 'apiVersion' => 'v1', - 'id' => '^\d+$', - ], - ], - [ 'name' => 'Command#update', 'url' => '/api/{apiVersion}/command/{id}', 'verb' => 'PUT', @@ -393,12 +375,5 @@ return [ ], ], ], - - /** - * TODO Enable after https://github.com/nextcloud/server/pull/13714 is merged - 'ocs-resources' => [ - 'Command' => ['url' => '/api/{apiVersion}/command', 'requirements' => ['apiVersion' => 'v1']], - ], - */ ]; |