From c3fc1cb7ec91783a7953486c8a83aa8008dd5406 Mon Sep 17 00:00:00 2001 From: Jozef Selesi Date: Thu, 20 Nov 2008 01:25:29 +0000 Subject: * Added HTTP status constants and helper functions to REST helper. * HTTP header setting in comment module now going through REST helper API. * Fixed items controller test. * Fixed user installer test. * Fixed _create() handling in the REST controller. * Fixed routing for edit and add forms. * Added some tests for the REST controller. * Set svn:eol-style to LF on a bunch of files. * Added preamble to MY_Forge.php. --- core/config/routes.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/config/routes.php') diff --git a/core/config/routes.php b/core/config/routes.php index 9e86def6..9e36f881 100644 --- a/core/config/routes.php +++ b/core/config/routes.php @@ -21,5 +21,8 @@ // The abstract REST_Controller is not directly routable. $config['^rest\b.*'] = null; +// Redirect /form/add and /form/edit to REST_Controller. +$config['^form/(edit|add)/(\w+)/(.*)$'] = '$2/form_$1/$3'; + // For now our default page is the scaffolding. $config['_default'] = 'welcome'; -- cgit v1.2.3