summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/appinfo/routes.php
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2014-06-03 16:50:05 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2014-06-03 16:53:03 +0200
commitb5a145b297ee933dc4c9d7e016a57feba91bf8ac (patch)
tree4999e4053582a73b2a07c030afd3877f4937717b /apps/files_sharing/appinfo/routes.php
parent37afab87b56fa7b2a1b0e751df72e9624663f94f (diff)
downloadnextcloud-server-b5a145b297ee933dc4c9d7e016a57feba91bf8ac.tar.gz
nextcloud-server-b5a145b297ee933dc4c9d7e016a57feba91bf8ac.zip
convert mail template editor to app framework for a restful api
Diffstat (limited to 'apps/files_sharing/appinfo/routes.php')
-rw-r--r--apps/files_sharing/appinfo/routes.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/files_sharing/appinfo/routes.php b/apps/files_sharing/appinfo/routes.php
index 7c2834dc9c2..5b6286e2bfb 100644
--- a/apps/files_sharing/appinfo/routes.php
+++ b/apps/files_sharing/appinfo/routes.php
@@ -5,6 +5,21 @@ $this->create('core_ajax_public_preview', '/publicpreview')->action(
require_once __DIR__ . '/../ajax/publicpreview.php';
});
+use \OCA\Files_Sharing\App\Sharing;
+
+$app = new Sharing();
+
+$app->registerRoutes($this, array('routes' => array(
+
+ // mailTemplate settings
+ array('name' => 'admin_settings#render', 'url' => '/settings/mailtemplate', 'verb' => 'GET'),
+
+ array('name' => 'admin_settings#update', 'url' => '/settings/mailtemplate', 'verb' => 'POST'),
+
+ array('name' => 'admin_settings#reset', 'url' => '/settings/mailtemplate', 'verb' => 'DELETE')
+
+)));
+
// OCS API
//TODO: SET: mail notification, waiting for PR #4689 to be accepted