<?php

/**
 * Guest Interaction Module — Route Definitions
 *
 * Registers the unauthenticated POST RSVP and Wish endpoints.
 * Loaded within app/modules/PublicInvitation/routes.php.
 *
 * POST /{workspace_slug}/i/{guest_token}/rsvp -> InteractionController@submitRsvp
 * POST /{workspace_slug}/i/{guest_token}/wish -> InteractionController@submitWish
 *
 * Available variable: $router (App\Core\Router instance)
 *
 * @package Inveetaire
 * @ref     PILOT-005
 */

// POST RSVP submission (protected by CsrfMiddleware)
$router->post('/{workspace_slug}/i/{guest_token}/rsvp', 'App\\Modules\\Interaction\\InteractionController@submitRsvp', [
    'App\\Middleware\\CsrfMiddleware',
]);
$router->post('/i/{workspace_slug}/{guest_token}/rsvp', 'App\\Modules\\Interaction\\InteractionController@submitRsvp', [
    'App\\Middleware\\CsrfMiddleware',
]);

// POST Wish submission (protected by CsrfMiddleware)
$router->post('/{workspace_slug}/i/{guest_token}/wish', 'App\\Modules\\Interaction\\InteractionController@submitWish', [
    'App\\Middleware\\CsrfMiddleware',
]);
$router->post('/i/{workspace_slug}/{guest_token}/wish', 'App\\Modules\\Interaction\\InteractionController@submitWish', [
    'App\\Middleware\\CsrfMiddleware',
]);
