diff options
author | Jozef Selesi <jozefs@users.sourceforge.net> | 2008-11-18 23:40:47 +0000 |
---|---|---|
committer | Jozef Selesi <jozefs@users.sourceforge.net> | 2008-11-18 23:40:47 +0000 |
commit | 1992343c2e1f2df892f39f971ae629edc59c33d0 (patch) | |
tree | 4d0e6365789905cf702324bc77b104a8eeaecb39 /core/config/routes.php | |
parent | 4bf486955cea9e2b67531f044c6bf34a7bc9324f (diff) |
* Changed REST API. Now there are two separate methods for forms:
GET /form/edit/{controller}/{resource_id} -> controller::_form_edit($resource)
GET /form/add/{controller}/{parameters} -> controller::_form_add($parameters)
* Updated comment, user and core modules to reflect the API changes
* Cleaned up routing and handling of requests to /{controller}
Diffstat (limited to 'core/config/routes.php')
-rw-r--r-- | core/config/routes.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/config/routes.php b/core/config/routes.php index ea177eda..120e6900 100644 --- a/core/config/routes.php +++ b/core/config/routes.php @@ -24,8 +24,8 @@ $config['^rest'] = null; $config['^rest/.*'] = null; $config['^(\w+)/(\d+)$'] = '$1/dispatch/$2'; -$config['^(\w+)$'] = '$1/index'; -$config['^form/(\w+)/(\w+)/(.*)$'] = '$2/form/$3/$1'; +$config['^(\w+)$'] = '$1/dispatch/0'; +$config['^form/(edit|add)/(\w+)/(.*)$'] = '$2/form_$1/$3'; // For now our default page is the scaffolding. $config['_default'] = 'welcome'; |