From 87f1115113f36b197003a45f32f295bb4cd19891 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 11 Nov 2008 07:29:48 +0000 Subject: Change REST API to use non-routable functions: _get(), _post(), _put(), _delete(). This should make it more obvious that these are not your typical routes, simplifies overall routing by removing a rule and removes the possibility of accidentally leaking information if we route to one of them by accident. --- core/controllers/photo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/controllers/photo.php') diff --git a/core/controllers/photo.php b/core/controllers/photo.php index 12d86cc4..b56c29b9 100644 --- a/core/controllers/photo.php +++ b/core/controllers/photo.php @@ -19,7 +19,7 @@ */ class Photo_Controller extends Item_Controller { - public function get($item) { + public function _get($item) { $template = new View("page.html"); // @todo: this needs to be data-driven -- cgit v1.2.3