]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/router.php
More RESTish URL (/notice/:notice/delete) for notice delete
[quix0rs-gnu-social.git] / lib / router.php
index 249e5e882397128e96ff76544fb2b70aaf41c34f..b13c51c32834c92fb24facdbfeccc59454699871 100644 (file)
@@ -244,12 +244,10 @@ class Router
                         array('action' => 'shownotice'),
                         array('notice' => '[0-9]+'));
 
-            $m->connect('notice/delete/:notice',
+            $m->connect('notice/:notice/delete',
                         array('action' => 'deletenotice'),
                         array('notice' => '[0-9]+'));
 
-            $m->connect('notice/delete', array('action' => 'deletenotice'));
-
             // conversation
 
             $m->connect('conversation/:id',