diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-11-09 19:20:23 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-09 19:20:23 +0000 |
commit | 1b490c5fe6ce6ced7b02bbdf8c939a991f0378af (patch) | |
tree | d06cda6e05d7121f6ec08154115c15b148436d44 /core/config | |
parent | 065bbb2120ce0aaee96a3886bd06c90ca26da9bd (diff) |
Make Gallery3 more RESTful.
Create Item_Controller as a common superclass for Album_Controller and
Photo_Controller. Change routes to route requests to Item_Controller
for dispatching, which in turn will generate get/post/put/delete
requests to the controlller so that each controller has a RESTful
surface.
Change in_place editing to take advantage of this.
Diffstat (limited to 'core/config')
-rw-r--r-- | core/config/routes.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/config/routes.php b/core/config/routes.php index 5314d913..5c34acb7 100644 --- a/core/config/routes.php +++ b/core/config/routes.php @@ -17,6 +17,5 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ - -$config['^(\w+)/(\d+)$'] = '$1/view/$2'; +$config['^(\w+)/(\d+)$'] = '$1/dispatch/$2'; $config['_default'] = 'welcome'; |