diff options
author | Zach Copley <zcopley@mekong.(none)> | 2009-06-17 14:34:04 -0700 |
---|---|---|
committer | Zach Copley <zcopley@mekong.(none)> | 2009-06-17 14:34:04 -0700 |
commit | 8992e8fa7a3c694cc9d424b3e50cf4d87519fa28 (patch) | |
tree | 63d19c2505c05117d0cf05f8b1d1f4524616d029 /lib | |
parent | 7e25a7f3aa2a308ddfc141e2e88fd52c042cb931 (diff) |
Ticket 1612 - make destory (and create) favorites work via API
Diffstat (limited to 'lib')
-rw-r--r-- | lib/router.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/router.php b/lib/router.php index 0fbaba9ed..8b6f63618 100644 --- a/lib/router.php +++ b/lib/router.php @@ -351,7 +351,8 @@ class Router $m->connect('api/favorites/:method/:argument', array('action' => 'api', - 'apiaction' => 'favorites')); + 'apiaction' => 'favorites', + array('method' => '(create|destroy)'))); $m->connect('api/favorites/:argument', array('action' => 'api', |