diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-12-09 08:41:38 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-12-09 08:41:38 -0800 |
commit | 367f2218f6bc278a7d0bd870e03a5d631155871a (patch) | |
tree | f5a8d428ca8c736b9b25273ee043e2e57536ac22 /modules/rest/controllers | |
parent | 3c30d595ae6a9a82e06f5427150d3667f00ef695 (diff) |
Use the relative url cache to look up resources instead of the relative path. This allows us to forego the extension as part of the REST url. As well, urls are consistent between normal usage and rest usage.
Diffstat (limited to 'modules/rest/controllers')
-rw-r--r-- | modules/rest/controllers/rest.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/rest/controllers/rest.php b/modules/rest/controllers/rest.php index 1ec24493..577d8aeb 100644 --- a/modules/rest/controllers/rest.php +++ b/modules/rest/controllers/rest.php @@ -34,6 +34,7 @@ class Rest_Controller extends Controller { print rest::forbidden("Invalid password for '{$request->user}'."); return; } + $key = ORM::factory("user_access_token") ->where("user_id", $user->id) ->find(); |