local route overrides and basic admin + page routes
authorChuck Hagenbuch <chuck@horde.org>
Wed, 14 Jan 2009 05:19:06 +0000 (00:19 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Wed, 14 Jan 2009 05:59:34 +0000 (00:59 -0500)
hydra/config/routes.php

index e69de29..f2534bf 100644 (file)
@@ -0,0 +1,13 @@
+<?php
+
+// Admin index
+$mapper->connect('admin', array('controller' => 'admin'));
+
+// Default route for serving content
+$mapper->connect('page', ':page', array('controller' => 'page'));
+
+
+// Local route overrides
+if (file_exists(dirname(__FILE__) . '/routes.local.php')) {
+    include dirname(__FILE__) . '/routes.local.php';
+}