libresign/appinfo/routes.php
Vitor Mattos 45cd3c374d
chore: Add SPDX header
Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-05-14 12:32:04 -03:00

34 lines
1.1 KiB
PHP

<?php
/**
* SPDX-FileCopyrightText: 2020-2024 LibreCode coop and contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
$requirements = [
'apiVersion' => '{apiVersion}',
'path' => '.+',
];
$routes = [
'routes' => [
// API
['name' => 'api#preflighted_cors', 'url' => '/api/{apiVersion}/{path}', 'verb' => 'OPTIONS', 'requirements' => $requirements],
],
];
return array_merge_recursive(
$routes,
include(__DIR__ . '/routes/routesAccountController.php'),
include(__DIR__ . '/routes/routesAdminController.php'),
include(__DIR__ . '/routes/routesDevelopController.php'),
include(__DIR__ . '/routes/routesFileController.php'),
include(__DIR__ . '/routes/routesFileElementsController.php'),
include(__DIR__ . '/routes/routesIdentifyAccountController.php'),
include(__DIR__ . '/routes/routesNotifyController.php'),
include(__DIR__ . '/routes/routesPageController.php'),
include(__DIR__ . '/routes/routesRequestSignatureController.php'),
include(__DIR__ . '/routes/routesSettingsController.php'),
include(__DIR__ . '/routes/routesSignatureElementsController.php'),
include(__DIR__ . '/routes/routesSignFileController.php'),
);