From 6dc8dad23eea121989e0a89a67e92091802857a0 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 19 Dec 2013 15:15:32 +0100 Subject: add persistent option for compact view --- appinfo/routes.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'appinfo') 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()); -- cgit v1.2.3