diff options
author | Georg Ehrke <developer@georgehrke.com> | 2013-07-11 20:35:55 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2013-07-11 20:35:55 +0200 |
commit | 14a35267c15115a1e7d2901ddd9b8c5c7e1b9a31 (patch) | |
tree | 67f42095ff7f5b76434dfef564f44c992ce31ec7 /core/routes.php | |
parent | 1ffc42b4bea8120ffb765838d05de96393bdaf33 (diff) | |
download | nextcloud-server-14a35267c15115a1e7d2901ddd9b8c5c7e1b9a31.tar.gz nextcloud-server-14a35267c15115a1e7d2901ddd9b8c5c7e1b9a31.zip |
OC\Preview - outsource static methods
Diffstat (limited to 'core/routes.php')
-rw-r--r-- | core/routes.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/routes.php b/core/routes.php index 41e82f8a73d..c0e658b26dc 100644 --- a/core/routes.php +++ b/core/routes.php @@ -42,12 +42,13 @@ $this->create('js_config', '/core/js/config.js') // Routing $this->create('core_ajax_routes', '/core/routes.json') ->action('OC_Router', 'JSRoutes'); +OC::$CLASSPATH['OC\PreviewManager'] = 'lib/preview.php'; $this->create('core_ajax_preview', '/core/preview.png') - ->action('OC\Preview', 'previewRouter'); + ->action('OC\PreviewManager', 'previewRouter'); $this->create('core_ajax_trashbin_preview', '/core/trashbinpreview.png') - ->action('OC\Preview', 'trashbinPreviewRouter'); + ->action('OC\PreviewManager', 'trashbinPreviewRouter'); $this->create('core_ajax_public_preview', '/core/publicpreview.png') - ->action('OC\Preview', 'publicPreviewRouter'); + ->action('OC\PreviewManager', 'publicPreviewRouter'); OC::$CLASSPATH['OC_Core_LostPassword_Controller'] = 'core/lostpassword/controller.php'; $this->create('core_lostpassword_index', '/lostpassword/') ->get() |