<?php

/**
 * Public Routes — Guest-Facing and Unauthenticated Pages
 *
 * This file registers all routes accessible without authentication.
 *
 * Available variable: $router (App\Core\Router instance)
 *
 * AUTH-001 (Sprint 2):
 *   GET  /login  → AuthController@showLogin
 *   POST /login  → AuthController@processLogin  (+ CsrfMiddleware)
 *
 * AUTH-002 (Sprint 2 — to be added after AUTH-001 commit):
 *   POST /logout → AuthController@logout
 *
 * AUTH-003 (Sprint 2 — to be added after AUTH-004 commit):
 *   GET  /forgot-password           → AuthController@showForgotPassword
 *   POST /forgot-password           → AuthController@processForgotPassword
 *   GET  /reset-password/{token}    → AuthController@showResetPassword
 *   POST /reset-password/{token}    → AuthController@processResetPassword
 *
 * GUEST INVITATION (Sprint 4):
 *   GET  /i/{slug}/{guest_code}         → GuestPortalController@show
 *   POST /i/{slug}/{guest_code}/rsvp    → GuestPortalController@rsvp
 *   POST /i/{slug}/{guest_code}/dietary → GuestPortalController@dietary
 *
 * @package Inveetaire
 * @ref     DBP v1.1 Ch.7, SPRINT2_PLANNING.md §5, AUTH-001
 */

// ── Auth Module Routes (AUTH-001) ─────────────────────────────────────────────
require ROOT_PATH . '/app/modules/Auth/routes.php';

// ── Public Invitation Module Routes (PILOT-003) ─────────────────────────────────
require ROOT_PATH . '/app/modules/PublicInvitation/routes.php';

// ── Public Landing Page Route (ALPHA STABILIZATION-002) ────────────────────────
$router->get('/', 'App\\Modules\\Auth\\LandingController@index');
