diff options
author | Joas Schilling <coding@schilljs.com> | 2020-03-23 16:33:11 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-04-18 11:21:28 +0200 |
commit | 3f8168b6e5c0fc14709b713d9ca4943f9df70273 (patch) | |
tree | 4f8e0a487f6a1c50c041ac96da2f024b86ab1532 /apps/cloud_federation_api/appinfo/routes.php | |
parent | 64196ddd19684b6a218428eeb6ee370d0514b68c (diff) | |
download | nextcloud-server-3f8168b6e5c0fc14709b713d9ca4943f9df70273.tar.gz nextcloud-server-3f8168b6e5c0fc14709b713d9ca4943f9df70273.zip |
Allow some apps to have root URLs in their own routing file
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/cloud_federation_api/appinfo/routes.php')
-rw-r--r-- | apps/cloud_federation_api/appinfo/routes.php | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/apps/cloud_federation_api/appinfo/routes.php b/apps/cloud_federation_api/appinfo/routes.php new file mode 100644 index 00000000000..49ea1155305 --- /dev/null +++ b/apps/cloud_federation_api/appinfo/routes.php @@ -0,0 +1,36 @@ +<?php +declare(strict_types=1); +/** + * @copyright Copyright (c) 2020 Joas Schilling <coding@schilljs.com> + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +return [ + [ + 'name' => 'RequestHandler#addShare', + 'url' => '/ocm/shares', + 'verb' => 'POST', + 'root' => '', + ], + [ + 'name' => 'RequestHandler#receiveNotification', + 'url' => '/ocm/notifications', + 'verb' => 'POST', + 'root' => '', + ], +]; |