Deleting tokens works (without confirmation)
[grauphel.git] / appinfo / routes.php
index a82db6b69c4794991f3579c922194046134dc32e..28ba16d185e4426f472d36f50dab04c8480491bd 100644 (file)
@@ -73,6 +73,17 @@ $application->registerRoutes(
                 'name' => 'gui#tokens',
                 'verb' => 'GET',
             ),
+
+            array(
+                'url'  => '/tokens/{username}/{tokenKey}',
+                'name' => 'token#delete',
+                'verb' => 'DELETE',
+            ),
+            array(
+                'url'  => '/tokens/{username}/{tokenKey}',
+                'name' => 'token#deletePost',
+                'verb' => 'POST',
+            ),
         )
     )
 );