diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-10-15 21:21:45 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-10-15 21:21:45 +0200 |
commit | f48c973876ebe6eab0d95fa2c3daa12355034e3e (patch) | |
tree | 345ae38fcfc7f51a56fce0e22fc2296b899becff /settings/routes.php | |
parent | 63e05992189aeca96bd719b97f43158903e52586 (diff) | |
parent | d3eebad59104355bb6e07c9f63a6fa868f5a2c4c (diff) | |
download | nextcloud-server-f48c973876ebe6eab0d95fa2c3daa12355034e3e.tar.gz nextcloud-server-f48c973876ebe6eab0d95fa2c3daa12355034e3e.zip |
Merge pull request #11570 from owncloud/backport-11408-master
Backport 11408 master
Diffstat (limited to 'settings/routes.php')
-rw-r--r-- | settings/routes.php | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/settings/routes.php b/settings/routes.php index d942e540360..b91b085f3a1 100644 --- a/settings/routes.php +++ b/settings/routes.php @@ -6,7 +6,16 @@ * See the COPYING-README file. */ -/** @var $this OCP\Route\IRouter */ +namespace OC\Settings; + +$application = new Application(); +$application->registerRoutes($this, array('routes' =>array( + array('name' => 'MailSettings#setMailSettings', 'url' => '/settings/admin/mailsettings', 'verb' => 'POST'), + array('name' => 'MailSettings#storeCredentials', 'url' => '/settings/admin/mailsettings/credentials', 'verb' => 'POST'), + array('name' => 'MailSettings#sendTestMail', 'url' => '/settings/admin/mailtest', 'verb' => 'POST'), +))); + +/** @var $this \OCP\Route\IRouter */ // Settings pages $this->create('settings_help', '/settings/help') @@ -88,12 +97,6 @@ $this->create('settings_ajax_getlog', '/settings/ajax/getlog.php') ->actionInclude('settings/ajax/getlog.php'); $this->create('settings_ajax_setloglevel', '/settings/ajax/setloglevel.php') ->actionInclude('settings/ajax/setloglevel.php'); -$this->create('settings_mail_settings', '/settings/admin/mailsettings') - ->post() - ->action('OC\Settings\Admin\Controller', 'setMailSettings'); -$this->create('settings_admin_mail_test', '/settings/admin/mailtest') - ->post() - ->action('OC\Settings\Admin\Controller', 'sendTestMail'); $this->create('settings_ajax_setsecurity', '/settings/ajax/setsecurity.php') ->actionInclude('settings/ajax/setsecurity.php'); $this->create('settings_ajax_excludegroups', '/settings/ajax/excludegroups.php') |