summaryrefslogtreecommitdiffstats
path: root/appinfo
diff options
context:
space:
mode:
authorPaul Tirk <paultirk@paultirk.com>2020-12-26 22:36:48 +0000
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 10:23:11 +0200
commitcc9c64d69bc1d02ecf290bb34b9c971b58adf0a8 (patch)
tree6110b51d0472c3aabe1bb5fc3c7ba11df3b41665 /appinfo
parent6e067dfd430721c6672988d6ac34f3a4d03678c8 (diff)
add api version 2 & folder api routes
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/routes.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 7bf843cb2..6e565088f 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -58,6 +58,11 @@ return ['routes' => [
// general API
['name' => 'api#index', 'url' => '/api', 'verb' => 'GET'],
+// API 2
+['name' => 'folder_api_v2#create_folder', 'url' => '/api/v2/folders', 'verb' => 'POST'],
+['name' => 'folder_api_v2#update_folder', 'url' => '/api/v2/folders/{folderId}', 'verb' => 'PATCH'],
+['name' => 'folder_api_v2#delete_folder', 'url' => '/api/v2/folders/{folderId}', 'verb' => 'DELETE'],
+
// API 1.2
['name' => 'user_api#index', 'url' => '/api/v1-2/user', 'verb' => 'GET'],
['name' => 'user_api#avatar', 'url' => '/api/v1-2/user/avatar', 'verb' => 'GET'],