- Add complete Auth module with login, logout, lock screen functionality - Fix 401 error on error monitoring page by adding /error-monitoring/ to public patterns - Improve lock screen with proper form handling and unlock functionality - Add RoleModel and role management views - Add BaseModel for common model functionality - Update authentication system and middleware - Add troubleshooting documentation - Update assets and build tools
12 lines
449 B
PHP
12 lines
449 B
PHP
<?php
|
|
use App\Core\Router;
|
|
use App\Modules\Auth\Controllers\AuthController;
|
|
|
|
$router = Router::getInstance();
|
|
|
|
// --- AUTH API ROUTES - SEGURANÇA MÁXIMA ---
|
|
$router->post('/api/auth/login', [AuthController::class, 'loginApi']);
|
|
$router->post('/api/auth/logout', [AuthController::class, 'logoutApi']);
|
|
$router->post('/api/auth/register', [AuthController::class, 'registerApi']);
|
|
$router->get('/api/auth/user', [AuthController::class, 'userApi']);
|