nextcloud/apps/cloud_federation_api/appinfo/routes.php
Micke Nordin 668246d380 feat(OCM-invites): Implementation of invitation flow
This patchset implements the /invite-accepted endpoint

https://cs3org.github.io/OCM-API/docs.html?branch=v1.1.0&repo=OCM-API&user=cs3org#/paths/~1invite-accepted/post

Also normalize names of columns, and populate them all

Inspo from:
 - apps/dav/lib/Migration/Version1005Date20180413093149.php
 - https://saturncloud.io/blog/what-is-the-maximum-length-of-a-url-in-different-browsers/#maximum-url-length-in-different-browsers
 - https://www.directedignorance.com/blog/maximum-length-of-email-address

Signed-off-by: Micke Nordin <kano@sunet.se>
2025-03-25 16:07:12 +01:00

30 lines
566 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
return [
'routes' => [
[
'name' => 'RequestHandler#addShare',
'url' => '/shares',
'verb' => 'POST',
'root' => '/ocm',
],
[
'name' => 'RequestHandler#receiveNotification',
'url' => '/notifications',
'verb' => 'POST',
'root' => '/ocm',
],
[
'name' => 'RequestHandler#inviteAccepted',
'url' => '/invite-accepted',
'verb' => 'POST',
'root' => '/ocm',
]
],
];