mirror of
https://github.com/LibreSign/libresign.git
synced 2025-12-17 21:12:16 +01:00
18 lines
383 B
PHP
18 lines
383 B
PHP
<?php
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2020-2024 LibreCode coop and contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
$requirements = [
|
|
'apiVersion' => '{apiVersion}',
|
|
'path' => '.+',
|
|
];
|
|
|
|
return [
|
|
'routes' => [
|
|
// API
|
|
['name' => 'api#preflighted_cors', 'url' => '/api/{apiVersion}/{path}', 'verb' => 'OPTIONS', 'requirements' => $requirements],
|
|
],
|
|
];
|