<?php
declare(strict_types=1);

return [
    ['GET',  '/reservations',                    'Reservations\Controllers\ReservationController@index',    ['auth'], 'reservation.view'],
    ['GET',  '/reservations/create',             'Reservations\Controllers\ReservationController@create',   ['auth'], 'reservation.create'],
    ['POST', '/reservations',                    'Reservations\Controllers\ReservationController@store',    ['auth', 'csrf'], 'reservation.create'],
    ['GET',  '/reservations/calendar',           'Reservations\Controllers\ReservationController@calendar', ['auth'], 'reservation.view'],
    ['GET',  '/reservations/{id:\d+}',           'Reservations\Controllers\ReservationController@show',     ['auth'], 'reservation.view'],
    ['POST', '/reservations/{id:\d+}/confirm',   'Reservations\Controllers\ReservationController@confirm',  ['auth', 'csrf'], 'reservation.confirm'],
    ['POST', '/reservations/{id:\d+}/cancel',    'Reservations\Controllers\ReservationController@cancel',   ['auth', 'csrf'], 'reservation.cancel'],
    ['POST', '/reservations/{id:\d+}/checkin',   'Reservations\Controllers\ReservationController@checkIn',  ['auth', 'csrf'], 'reservation.view'],
];
