add DELETE /token/$username/$tokenKey API
[grauphel.git] / appinfo / application.php
index cc39ceb..20325de 100644 (file)
@@ -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()
+                );
+            }
+        );
     }
 }
 ?>
     }
 }
 ?>