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

github.com/nextcloud/user_saml.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-11-14 16:18:59 +0300
committerLukas Reschke <lukas@statuscode.ch>2016-11-14 16:18:59 +0300
commit59a7b8b50e10868d92b45f618fdcc1cc66419c06 (patch)
treeb0ece324d78573b57217757103701bf5e7d6202f /appinfo
parent79462b37fdc018ebf535654c4ce3380ffacba240 (diff)
Add tests for routes.php
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/routes.php60
1 files changed, 28 insertions, 32 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 724f4e59..a7c66f65 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -21,36 +21,32 @@
namespace OCA\User_SAML\AppInfo;
-(new Application())->registerRoutes(
- $this,
- [
- 'routes' => [
- [
- 'name' => 'SAML#login',
- 'url' => '/saml/login',
- 'verb' => 'GET',
- ],
- [
- 'name' => 'SAML#getMetadata',
- 'url' => '/saml/metadata',
- 'verb' => 'GET',
- ],
- [
- 'name' => 'SAML#assertionConsumerService',
- 'url' => '/saml/acs',
- 'verb' => 'POST',
- ],
- [
- 'name' => 'SAML#singleLogoutService',
- 'url' => '/saml/sls',
- 'verb' => 'GET',
- ],
- [
- 'name' => 'SAML#notProvisioned',
- 'url' => '/saml/notProvisioned',
- 'verb' => 'GET',
- ],
+return [
+ 'routes' => [
+ [
+ 'name' => 'SAML#login',
+ 'url' => '/saml/login',
+ 'verb' => 'GET',
],
- ]
-);
-
+ [
+ 'name' => 'SAML#getMetadata',
+ 'url' => '/saml/metadata',
+ 'verb' => 'GET',
+ ],
+ [
+ 'name' => 'SAML#assertionConsumerService',
+ 'url' => '/saml/acs',
+ 'verb' => 'POST',
+ ],
+ [
+ 'name' => 'SAML#singleLogoutService',
+ 'url' => '/saml/sls',
+ 'verb' => 'GET',
+ ],
+ [
+ 'name' => 'SAML#notProvisioned',
+ 'url' => '/saml/notProvisioned',
+ 'verb' => 'GET',
+ ],
+ ],
+];