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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-12-14 17:56:07 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-12-16 15:13:05 +0300
commit6995223b1ed202c7f8e920e83cb5b53efd7ce761 (patch)
tree76e839b9c3de3b4751a993f24f35f0cb93c0dbbd /core/routes.php
parentd37034f1612279b07c78284771ac73fbd5a2a407 (diff)
Add well known handlers API
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/routes.php')
-rw-r--r--core/routes.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/routes.php b/core/routes.php
index 9fa378dc1d8..5bc4075315a 100644
--- a/core/routes.php
+++ b/core/routes.php
@@ -89,6 +89,9 @@ $application->registerRoutes($this, [
// Logins for passwordless auth
['name' => 'WebAuthn#startAuthentication', 'url' => 'login/webauthn/start', 'verb' => 'POST'],
['name' => 'WebAuthn#finishAuthentication', 'url' => 'login/webauthn/finish', 'verb' => 'POST'],
+
+ // Well known requests https://tools.ietf.org/html/rfc5785
+ ['name' => 'WellKnown#handle', 'url' => '.well-known/{service}'],
],
'ocs' => [
['root' => '/cloud', 'name' => 'OCS#getCapabilities', 'url' => '/capabilities', 'verb' => 'GET'],