summaryrefslogtreecommitdiff
path: root/modules/gallery/config/routes.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-12-04 11:42:37 -0800
committerTim Almdal <tnalmdal@shaw.ca>2009-12-04 11:42:37 -0800
commit8ca69cffbba70fe22e19478f742a37bdbd758d83 (patch)
tree712a69eef7d134d7ad2ea2668d30fda44914beff /modules/gallery/config/routes.php
parent5743b159c28888f2165cc4269d3302fea24fde7a (diff)
parent5c107be9033ae48f781c8430702458f613e791ee (diff)
Merge branch 'master' into talmdal_dev
Diffstat (limited to 'modules/gallery/config/routes.php')
-rw-r--r--modules/gallery/config/routes.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/gallery/config/routes.php b/modules/gallery/config/routes.php
index 0272ca15..63cc6150 100644
--- a/modules/gallery/config/routes.php
+++ b/modules/gallery/config/routes.php
@@ -18,14 +18,11 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
-// The abstract REST_Controller is not directly routable.
-$config["^rest\b.*"] = null;
-
// Admin controllers are not available, except via /admin
$config["^admin_.*"] = null;
-// Redirect /form/add and /form/edit to REST_Controller.
+// Redirect /form/add and /form/edit to the module/form_(add|edit)/parms.
$config["^form/(edit|add)/(\w+)/(.*)$"] = "$2/form_$1/$3";
// Default page is the root album
-$config["_default"] = "albums/1";
+$config["_default"] = "albums";