-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path_routes.php
More file actions
66 lines (52 loc) · 1.65 KB
/
_routes.php
File metadata and controls
66 lines (52 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
/**
* This file is part of Galette Helloasso plugin (https://galette-community.github.io/plugin-helloasso).
* SPDX-FileCopyrightText: Copyright © 2025-2026 The Galette Team
* SPDX-License-Identifier: GPL-3.0-or-later
*/
declare(strict_types=1);
use Galette\Middleware\Authenticate;
use GaletteHelloasso\Controllers\HelloassoController;
//Constants and classes from plugin
require_once $module['root'] . '/_config.inc.php';
$app->get(
'/preferences',
[HelloassoController::class, 'preferences']
)->setName('helloasso_preferences')->add(Authenticate::class);
$app->post(
'/preferences',
[HelloassoController::class, 'storePreferences']
)->setName('store_helloasso_preferences')->add(Authenticate::class);
$app->get(
'/form',
[HelloassoController::class, 'form']
)->setName('helloasso_form');
$app->post(
'/form',
[HelloassoController::class, 'formCheckout']
)->setName('helloasso_formCheckout');
$app->get(
'/logs[/{option:order|reset|page}/{value}]',
[HelloassoController::class, 'logs']
)->setName('helloasso_history')->add(Authenticate::class);
//history filtering
$app->post(
'/history/filter',
[HelloassoController::class, 'filter']
)->setName('filter_helloasso_history')->add(Authenticate::class);
$app->post(
'/webhook',
[HelloassoController::class, 'webhook']
)->setName('helloasso_webhook');
$app->get(
'/success',
[HelloassoController::class, 'returnUrl']
)->setName('helloasso_success');
$app->get(
'/cancel',
[HelloassoController::class, 'cancelUrl']
)->setName('helloasso_cancel');
$app->get(
'/error',
[HelloassoController::class, 'errorUrl']
)->setName('helloasso_error');