add DELETE /token/$username/$tokenKey API
[grauphel.git] / appinfo / routes.php
index a82db6b..a730583 100644 (file)
@@ -73,6 +73,12 @@ $application->registerRoutes(
                 'name' => 'gui#tokens',
                 'verb' => 'GET',
             ),
                 'name' => 'gui#tokens',
                 'verb' => 'GET',
             ),
+
+            array(
+                'url'  => '/tokens/{username}/{tokenKey}',
+                'name' => 'token#delete',
+                'verb' => 'DELETE',
+            ),
         )
     )
 );
         )
     )
 );