summaryrefslogtreecommitdiffstats
path: root/core/routes.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-08-22 18:16:55 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2014-08-25 11:50:19 +0200
commitf33312f76773a46acf084dd93830c739e44e9962 (patch)
tree4caa766b1d11ac1087b81f2d648f59f92194c1a1 /core/routes.php
parent6202ef3258c7db707f32c0bcaa17552b92fa15eb (diff)
downloadnextcloud-server-f33312f76773a46acf084dd93830c739e44e9962.tar.gz
nextcloud-server-f33312f76773a46acf084dd93830c739e44e9962.zip
Use AppFramework instead of custom controller
Diffstat (limited to 'core/routes.php')
-rw-r--r--core/routes.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/core/routes.php b/core/routes.php
index 37eb2f8a56c..28a3680dd91 100644
--- a/core/routes.php
+++ b/core/routes.php
@@ -6,13 +6,14 @@
* See the COPYING-README file.
*/
-use OC\Core\LostPassword\Application;
+use OC\Core\Application;
$application = new Application();
$application->registerRoutes($this, array('routes' => array(
array('name' => 'lost#email', 'url' => '/lostpassword/email', 'verb' => 'POST'),
array('name' => 'lost#resetform', 'url' => '/lostpassword/reset/form/{token}/{userId}', 'verb' => 'GET'),
array('name' => 'lost#setPassword', 'url' => '/lostpassword/set/{token}/{userId}', 'verb' => 'POST'),
+ array('name' => 'user#getDisplayNames', 'url' => '/displaynames', 'verb' => 'POST'),
)
));
@@ -35,10 +36,6 @@ $this->create('core_ajax_share', '/core/ajax/share.php')
// Translations
$this->create('core_ajax_translations', '/core/ajax/translations.php')
->actionInclude('core/ajax/translations.php');
-// User display names
-$this->create('core_user_displaynames', '/displaynames')
- ->get()
- ->action('OC\Core\User\Controller', 'getDisplayNames');
// Tags
$this->create('core_tags_tags', '/tags/{type}')
->get()