<?php
declare(strict_types=1);

return [
    ['GET',  '/sessions',                        'Sessions\Controllers\SessionController@index',              ['auth'], 'session.view'],
    ['GET',  '/sessions/calendar',               'Sessions\Controllers\SessionController@calendar',           ['auth'], 'session.view'],
    ['GET',  '/sessions/{id:\d+}',               'Sessions\Controllers\SessionController@show',               ['auth'], 'session.view'],
    ['GET',  '/sessions/{id:\d+}/attendance',    'Sessions\Controllers\SessionAttendanceController@form',     ['auth'], 'session.attendance'],
    ['POST', '/sessions/{id:\d+}/attendance',    'Sessions\Controllers\SessionAttendanceController@save',     ['auth', 'csrf'], 'session.attendance'],
    ['POST', '/sessions/{id:\d+}/cancel',        'Sessions\Controllers\SessionController@cancel',             ['auth', 'csrf'], 'session.manage'],
    ['POST', '/sessions/{id:\d+}/complete',      'Sessions\Controllers\SessionController@complete',           ['auth', 'csrf'], 'session.manage'],
    ['POST', '/sessions/generate',               'Sessions\Controllers\SessionController@generate',           ['auth', 'csrf'], 'session.manage'],

    // Session Feedback
    ['GET',  '/sessions/{id:\d+}/feedback',          'Sessions\Controllers\SessionFeedbackController@create',      ['auth'], 'session.view'],
    ['POST', '/sessions/{id:\d+}/feedback',          'Sessions\Controllers\SessionFeedbackController@store',       ['auth', 'csrf'], 'session.view'],
    ['GET',  '/sessions/{id:\d+}/feedback/report',   'Sessions\Controllers\SessionFeedbackController@report',      ['auth'], 'session.view_feedback'],
    ['GET',  '/coaches/{id:\d+}/feedback-summary',   'Sessions\Controllers\SessionFeedbackController@coachSummary',['auth'], 'session.view_feedback'],
];
