<?php

/**
 * Messaging Module — Route Definitions
 *
 * Registers the Couple Portal messaging management routes.
 * Loaded within routes/couple.php.
 *
 * GET  /app/couple/messaging/template -> MessageController@editTemplate
 * POST /app/couple/messaging/template -> MessageController@saveTemplate
 * GET  /app/couple/messaging/preview  -> MessageController@previewList
 *
 * Available variable: $router (App\Core\Router instance)
 *
 * @package Inveetaire
 * @ref     PILOT-006
 */

$router->get('/messaging/template', 'App\\Modules\\Messaging\\MessageController@editTemplate');
$router->post('/messaging/template', 'App\\Modules\\Messaging\\MessageController@saveTemplate', [
    'App\\Middleware\\CsrfMiddleware'
]);
$router->get('/messaging/preview', 'App\\Modules\\Messaging\\MessageController@previewList');
