Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/impersonate.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2021-01-14 00:48:48 +0300
committerArthur Schiwon <blizzz@arthur-schiwon.de>2021-01-14 01:19:16 +0300
commitf1ffd35f341becd87743c77d989630d4c4d880a3 (patch)
tree90eab13f9ffa5516e14e4b63cebb6895d2a76136 /appinfo
parentdaacde07c2cb2f78caf9d1ed32642bacb11d9f8d (diff)
adjust to 21
- CI updated - few code adjustments Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/routes.php35
1 files changed, 15 insertions, 20 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 832c2bf..4087bc5 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -9,26 +9,21 @@
* @copyright Jörn Friedrich Dreyer 2015
*/
-use OCP\AppFramework\App;
-$application = new App('impersonate');
-$application->registerRoutes(
- $this,
- [
- 'routes' => [
+return [
+ 'routes' => [
- // Land in users setting page ( for admin user only )
- [
- 'name' => 'Settings#impersonate',
- 'url' => '/user',
- 'verb' => 'POST',
- ],
+ // Land in users setting page ( for admin user only )
+ [
+ 'name' => 'Settings#impersonate',
+ 'url' => '/user',
+ 'verb' => 'POST',
+ ],
- //Land in index page
- [
- 'name' => 'Logout#logout',
- 'url' => '/logout',
- 'verb' => 'POST',
- ],
+ //Land in index page
+ [
+ 'name' => 'Logout#logout',
+ 'url' => '/logout',
+ 'verb' => 'POST',
],
- ]
-);
+ ],
+];