summaryrefslogtreecommitdiffstats
path: root/appinfo
diff options
context:
space:
mode:
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/routes.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 6e21bf5f3..cc697d0a9 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -217,6 +217,18 @@ $this->create('news_export_articles', '/export/articles')->get()->action(
/**
* User Settings
*/
+$this->create('news_usersettings_iscompact', '/usersettings/compact')->get()->action(
+ function($params){
+ App::main('UserSettingsController', 'isCompactView', $params, new DIContainer());
+ }
+);
+
+$this->create('news_usersettings_setcompact', '/usersettings/compact')->post()->action(
+ function($params){
+ App::main('UserSettingsController', 'setCompactView', $params, new DIContainer());
+ }
+);
+
$this->create('news_usersettings_read', '/usersettings/read')->get()->action(
function($params){
App::main('UserSettingsController', 'read', $params, new DIContainer());