2025-06-02 13:34:17 +02:00

27 lines
1.0 KiB
PHP

<?php
use Lycoreco\Apps\Users\Controllers;
use Lycoreco\Includes\Routing\Path;
$users_urls = [
// Login and register
new Path('/login', new Controllers\LoginController(), 'login'),
new Path('/logout', new Controllers\LogoutController(), 'logout'),
new Path('/register', new Controllers\RegisterController(), 'register'),
// Profile
new Path('/user', new Controllers\ProfileController(), 'profile'),
// Edit information
new Path('/user/edit/information', new Controllers\EditContactInfoController(), 'edit-info'),
new Path('/user/edit/email', new Controllers\EditEmailController(), 'edit-email'),
new Path('/user/edit/password', new Controllers\EditPasswordController(), 'edit-password'),
// Reset password
new Path('/forgot-password', new Controllers\ForgotPasswordController(), 'forgot'),
new Path('/reset-password/[:string]', new Controllers\ResetPasswordController(), 'reset'),
// Activation
new Path('/activate-account/[:string]', new Controllers\ActivationController(), 'activate')
];