mirror of
https://github.com/nextcloud/server.git
synced 2026-02-03 20:41:22 -05:00
39 lines
806 B
PHP
39 lines
806 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',
|
|
],
|
|
|
|
// needs to be kept at the bottom of the list
|
|
[
|
|
'name' => 'OCMRequest#manageOCMRequests',
|
|
'url' => '/{ocmPath}',
|
|
'requirements' => ['ocmPath' => '.*'],
|
|
'verb' => ['GET', 'POST', 'PUT', 'DELETE'],
|
|
'root' => '/ocm',
|
|
],
|
|
],
|
|
];
|