From ace226e665fa77d04a61dfd61818f6cce5df6861 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Tue, 7 Oct 2014 07:51:07 +0200 Subject: Deleting tokens works (without confirmation) --- appinfo/application.php | 2 ++ appinfo/routes.php | 5 +++++ 2 files changed, 7 insertions(+) (limited to 'appinfo') 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', + ), ) ) ); -- cgit v1.2.3