diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2014-10-07 07:51:07 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2014-10-07 07:51:07 +0200 |
| commit | ace226e665fa77d04a61dfd61818f6cce5df6861 (patch) | |
| tree | 1008ad783d7e94249cf4b4103e41ecdf25ba2591 /appinfo | |
| parent | b77c4b6b2de74543d9543139a1d2b3c4fe2f592f (diff) | |
| download | grauphel-ace226e665fa77d04a61dfd61818f6cce5df6861.tar.gz grauphel-ace226e665fa77d04a61dfd61818f6cce5df6861.zip | |
Deleting tokens works (without confirmation)
Diffstat (limited to 'appinfo')
| -rw-r--r-- | appinfo/application.php | 2 | ||||
| -rw-r--r-- | appinfo/routes.php | 5 |
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', + ), ) ) ); |
