<?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'],
];
