allow DELETE for untagging as well
authorChuck Hagenbuch <chuck@horde.org>
Wed, 24 Dec 2008 19:32:29 +0000 (14:32 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Sat, 27 Dec 2008 02:29:18 +0000 (21:29 -0500)
content/config/routes.php

index d5abf1e..feb5882 100644 (file)
@@ -32,7 +32,7 @@ $mapper->connect('tag', array('controller' => 'tag', 'action' => 'tag',
 // Untag an object. Required POST parameters are: tags (array or string list)
 // and objectId. userId is inferred from the authenticated user:
 $mapper->connect('untag', array('controller' => 'tag', 'action' => 'untag',
-                                'conditions' => array('method' => array('POST'))));
+                                'conditions' => array('method' => array('POST', 'DELETE'))));
 
 
 // Local route overrides