and allow PUT for tagging
authorChuck Hagenbuch <chuck@horde.org>
Wed, 24 Dec 2008 19:33:48 +0000 (14:33 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Sat, 27 Dec 2008 02:29:18 +0000 (21:29 -0500)
content/config/routes.php

index feb5882..5d08243 100644 (file)
@@ -27,7 +27,7 @@ $mapper->connect('users.:(format)', array('controller' => 'tag', 'action' => 'se
 // Tag an object. Required POST parameters are: tags (array or string list) and
 // objectId. userId is inferred from the authenticated user:
 $mapper->connect('tag', array('controller' => 'tag', 'action' => 'tag',
-                              'conditions' => array('method' => array('POST'))));
+                              'conditions' => array('method' => array('POST', 'PUT'))));
 
 // Untag an object. Required POST parameters are: tags (array or string list)
 // and objectId. userId is inferred from the authenticated user: