diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-11-14 16:18:59 +0300 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-11-14 16:18:59 +0300 |
commit | 59a7b8b50e10868d92b45f618fdcc1cc66419c06 (patch) | |
tree | b0ece324d78573b57217757103701bf5e7d6202f /appinfo | |
parent | 79462b37fdc018ebf535654c4ce3380ffacba240 (diff) |
Add tests for routes.php
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/routes.php | 60 |
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', + ], + ], +]; |