mirror of
https://github.com/LibreSign/libresign.git
synced 2025-12-17 21:12:16 +01:00
34 lines
2 KiB
PHP
34 lines
2 KiB
PHP
<?php
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2020-2024 LibreCode coop and contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
$requirements = [
|
|
'apiVersion' => '(v1)',
|
|
];
|
|
|
|
return [
|
|
'routes' => [
|
|
// Pages - restricted
|
|
['name' => 'page#index', 'url' => '/', 'verb' => 'GET'],
|
|
['name' => 'page#indexF', 'url' => '/f/', 'verb' => 'GET'],
|
|
['name' => 'page#incomplete', 'url' => '/f/incomplete', 'verb' => 'GET'],
|
|
['name' => 'page#signFPath', 'url' => '/f/sign/{uuid}/{path}', 'verb' => 'GET', 'requirements' => ['path' => '.+'], 'postfix' => 'extra'],
|
|
['name' => 'page#signF', 'url' => '/f/sign/{uuid}', 'verb' => 'GET'],
|
|
['name' => 'page#indexFPath', 'url' => '/f/{path}', 'verb' => 'GET', 'requirements' => ['path' => '.+'], 'postfix' => 'front'],
|
|
['name' => 'page#getPdfFile', 'url' => '/pdf/{uuid}', 'verb' => 'GET'],
|
|
['name' => 'page#resetPassword', 'url' => '/reset-password', 'verb' => 'GET'],
|
|
// Pages - public
|
|
['name' => 'page#incompleteP', 'url' => '/p/incomplete', 'verb' => 'GET'],
|
|
['name' => 'page#sign', 'url' => '/p/sign/{uuid}', 'verb' => 'GET'],
|
|
['name' => 'page#sign', 'url' => '/p/sign/{uuid}/{path}', 'verb' => 'GET', 'requirements' => ['path' => '.+'], 'postfix' => 'extra'],
|
|
['name' => 'page#signAccountFile', 'url' => '/p/account/files/approve/{uuid}', 'verb' => 'GET'],
|
|
['name' => 'page#signAccountFile', 'url' => '/p/account/files/approve/{uuid}/{path}', 'verb' => 'GET', 'requirements' => ['path' => '.+'], 'postfix' => 'extra'],
|
|
['name' => 'page#validation', 'url' => '/p/validation', 'verb' => 'GET'],
|
|
['name' => 'page#validationFileWithShortUrl', 'url' => '/validation/{uuid}', 'verb' => 'GET'],
|
|
['name' => 'page#validationFile', 'url' => '/p/validation/{uuid}', 'verb' => 'GET'],
|
|
['name' => 'page#getPdf', 'url' => '/p/pdf/{uuid}', 'verb' => 'GET']
|
|
],
|
|
];
|