<?php
declare(strict_types=1);

return [
    // Auth
    ['POST', '/api/v1/coach/auth/login', 'TrainerPortal\Controllers\Api\CoachAuthController@login', ['cors'], null],
    ['POST', '/api/v1/coach/auth/logout', 'TrainerPortal\Controllers\Api\CoachAuthController@logout', ['cors', 'coach_auth'], null],

    // Profile & Academy
    ['GET', '/api/v1/coach/profile', 'TrainerPortal\Controllers\Api\CoachProfileController@profile', ['cors', 'coach_auth'], null],
    ['GET', '/api/v1/coach/academy', 'TrainerPortal\Controllers\Api\CoachProfileController@academy', ['cors', 'coach_auth'], null],

    // Schedule
    ['GET', '/api/v1/coach/schedule', 'TrainerPortal\Controllers\Api\CoachScheduleController@weeklySchedule', ['cors', 'coach_auth'], null],
    ['GET', '/api/v1/coach/sessions', 'TrainerPortal\Controllers\Api\CoachScheduleController@sessions', ['cors', 'coach_auth'], null],
    ['GET', '/api/v1/coach/groups', 'TrainerPortal\Controllers\Api\CoachScheduleController@groups', ['cors', 'coach_auth'], null],
    ['GET', '/api/v1/coach/groups/{id:\d+}/players', 'TrainerPortal\Controllers\Api\CoachScheduleController@groupPlayers', ['cors', 'coach_auth'], null],

    // Day Off
    ['POST', '/api/v1/coach/day-off', 'TrainerPortal\Controllers\Api\DayOffController@request', ['cors', 'coach_auth'], null],
    ['GET', '/api/v1/coach/day-off', 'TrainerPortal\Controllers\Api\DayOffController@myRequests', ['cors', 'coach_auth'], null],
    ['GET', '/api/v1/coach/day-off/{id:\d+}', 'TrainerPortal\Controllers\Api\DayOffController@requestDetails', ['cors', 'coach_auth'], null],

    // Replacement
    ['GET', '/api/v1/coach/replacements', 'TrainerPortal\Controllers\Api\ReplacementController@available', ['cors', 'coach_auth'], null],
    ['POST', '/api/v1/coach/replacements/{id:\d+}/volunteer', 'TrainerPortal\Controllers\Api\ReplacementController@volunteer', ['cors', 'coach_auth'], null],
];
