aboutsummaryrefslogtreecommitdiff
path: root/appinfo
diff options
context:
space:
mode:
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/application.php2
-rw-r--r--appinfo/routes.php5
2 files changed, 7 insertions, 0 deletions
diff --git a/appinfo/application.php b/appinfo/application.php
index 20325de..66ed557 100644
--- a/appinfo/application.php
+++ b/appinfo/application.php
@@ -59,6 +59,8 @@ class Application extends App
$container->registerService(
'TokenController',
function($c) {
+ Dependencies::get()->urlGen
+ = $c->query('ServerContainer')->getURLGenerator();
return new \OCA\Grauphel\Controller\TokenController(
$c->query('AppName'),
$c->query('Request'),
diff --git a/appinfo/routes.php b/appinfo/routes.php
index a730583..28ba16d 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -79,6 +79,11 @@ $application->registerRoutes(
'name' => 'token#delete',
'verb' => 'DELETE',
),
+ array(
+ 'url' => '/tokens/{username}/{tokenKey}',
+ 'name' => 'token#deletePost',
+ 'verb' => 'POST',
+ ),
)
)
);