summaryrefslogtreecommitdiffstats
path: root/appinfo
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2013-12-19 15:15:32 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2013-12-19 15:15:32 +0100
commit6dc8dad23eea121989e0a89a67e92091802857a0 (patch)
tree15d6b5eda5fece8bf691d5ef8662f697b56b7073 /appinfo
parent28d28d8c9eb5ed9f184b572cfd16994c024e4227 (diff)
add persistent option for compact view
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());