aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/appinfo
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-01-12 11:28:04 +0100
committerJulius Härtl <jus@bitgrid.net>2021-01-28 11:59:46 +0100
commit497440477492b6e7df8ca1eb6c79eb7100a2fe24 (patch)
tree66050dc6e96bb1f7c78fb0729761c017410d5636 /apps/files/appinfo
parent7e7284d790f55a14ec100771c08809e32514c533 (diff)
downloadnextcloud-server-497440477492b6e7df8ca1eb6c79eb7100a2fe24.tar.gz
nextcloud-server-497440477492b6e7df8ca1eb6c79eb7100a2fe24.zip
files: Create files from template API
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files/appinfo')
-rw-r--r--apps/files/appinfo/routes.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/files/appinfo/routes.php b/apps/files/appinfo/routes.php
index 65c8deb4427..03a025cadf5 100644
--- a/apps/files/appinfo/routes.php
+++ b/apps/files/appinfo/routes.php
@@ -139,6 +139,21 @@ $application->registerRoutes(
'verb' => 'POST'
],
[
+ 'name' => 'Template#list',
+ 'url' => '/api/v1/templates',
+ 'verb' => 'GET'
+ ],
+ [
+ 'name' => 'Template#create',
+ 'url' => '/api/v1/templates/create',
+ 'verb' => 'POST'
+ ],
+ [
+ 'name' => 'Template#path',
+ 'url' => '/api/v1/templates/path',
+ 'verb' => 'POST'
+ ],
+ [
'name' => 'TransferOwnership#transfer',
'url' => '/api/v1/transferownership',
'verb' => 'POST',