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

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2020-06-14 13:13:58 +0300
committerdartcafe <github@dartcafe.de>2020-06-14 13:13:58 +0300
commit734c217253323caa202e257b5187736ec28419ec (patch)
tree09949f98996f9c651c5dd4595d695ca43c4d47a3 /appinfo
parentb3391397a48241a99c6f092fe8be26466db1c474 (diff)
change api routes
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/routes.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 3288ecd2..33c26d08 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -73,9 +73,9 @@ return [
['name' => 'system#validate_public_username', 'url' => '/check/username', 'verb' => 'POST'],
// REST-API calls
- ['name' => 'comment_api#get', 'url' => '/api/1.0/comments/{pollId}', 'verb' => 'GET'],
- ['name' => 'comment_api#delete', 'url' => '/api/1.0/comments/{commentId}', 'verb' => 'DELETE'],
- ['name' => 'comment_api#add', 'url' => '/api/1.0/comments', 'verb' => 'POST'],
- ['name' => 'comment_api#preflighted_cors', 'url' => '/api/1.0/comments', 'verb' => 'OPTIONS', 'requirements' => array('path' => '.+')],
+ ['name' => 'comment_api#preflighted_cors', 'url' => '/api/v1.0/comments', 'verb' => 'OPTIONS', 'requirements' => array('path' => '.+')],
+ ['name' => 'comment_api#get', 'url' => '/api/v1.0/comments/{pollId}', 'verb' => 'GET'],
+ ['name' => 'comment_api#add', 'url' => '/api/v1.0/comments', 'verb' => 'POST'],
+ ['name' => 'comment_api#delete', 'url' => '/api/v1.0/comments/{commentId}', 'verb' => 'DELETE'],
]
];