From 1b490c5fe6ce6ced7b02bbdf8c939a991f0378af Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 9 Nov 2008 19:20:23 +0000 Subject: 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. --- core/config/routes.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core/config/routes.php') 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'; -- cgit v1.2.3