<?php
declare(strict_types=1);

/** @var \App\Core\Router $router */

use App\Middleware\AuthMiddleware;
use App\Middleware\RateLimitMiddleware;

// Public Routes
$router->post('/auth/register', 'AuthController@register', [RateLimitMiddleware::class]);
$router->post('/auth/login', 'AuthController@login', [RateLimitMiddleware::class]);
$router->post('/auth/forgot-password', 'AuthController@forgotPassword', [RateLimitMiddleware::class]);
$router->post('/auth/reset-password', 'AuthController@resetPassword', [RateLimitMiddleware::class]);
$router->post('/auth/refresh', 'AuthController@refresh');

// Protected Routes
$router->post('/auth/logout', 'AuthController@logout', [AuthMiddleware::class]);
$router->get('/auth/me', 'AuthController@me', [AuthMiddleware::class]);
