From e112e3a40594eb802ccb6549ad4329ae677f9e8d Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Thu, 2 Oct 2014 23:25:23 +0200 Subject: add DELETE /token/$username/$tokenKey API --- appinfo/application.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'appinfo/application.php') diff --git a/appinfo/application.php b/appinfo/application.php index cc39ceb..20325de 100644 --- a/appinfo/application.php +++ b/appinfo/application.php @@ -56,6 +56,16 @@ class Application extends App ); } ); + $container->registerService( + 'TokenController', + function($c) { + return new \OCA\Grauphel\Controller\TokenController( + $c->query('AppName'), + $c->query('Request'), + $c->query('Session')->getUser() + ); + } + ); } } ?> -- cgit v1.2.3