aboutsummaryrefslogtreecommitdiff
path: root/appinfo/routes.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2014-10-02 23:25:23 +0200
committerChristian Weiske <cweiske@cweiske.de>2014-10-02 23:25:23 +0200
commite112e3a40594eb802ccb6549ad4329ae677f9e8d (patch)
treea6cecdc9c196ff1ab09c6ae9baaf78728728f922 /appinfo/routes.php
parent600e904f35d598a64be0139d39b87a59ed5eaa12 (diff)
downloadgrauphel-e112e3a40594eb802ccb6549ad4329ae677f9e8d.tar.gz
grauphel-e112e3a40594eb802ccb6549ad4329ae677f9e8d.zip
add DELETE /token/$username/$tokenKey API
Diffstat (limited to 'appinfo/routes.php')
-rw-r--r--appinfo/routes.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index a82db6b..a730583 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -73,6 +73,12 @@ $application->registerRoutes(
'name' => 'gui#tokens',
'verb' => 'GET',
),
+
+ array(
+ 'url' => '/tokens/{username}/{tokenKey}',
+ 'name' => 'token#delete',
+ 'verb' => 'DELETE',
+ ),
)
)
);