<?php
declare(strict_types=1);

return [
    ['GET',  '/facilities',                          'Facilities\Controllers\FacilityController@index',          ['auth'], 'facility.view'],
    ['GET',  '/facilities/create',                   'Facilities\Controllers\FacilityController@create',         ['auth'], 'facility.manage'],
    ['POST', '/facilities',                          'Facilities\Controllers\FacilityController@store',          ['auth', 'csrf'], 'facility.manage'],
    ['GET',  '/facilities/{id:\d+}',                 'Facilities\Controllers\FacilityController@show',           ['auth'], 'facility.view'],
    ['GET',  '/facilities/{id:\d+}/edit',            'Facilities\Controllers\FacilityController@edit',           ['auth'], 'facility.manage'],
    ['POST', '/facilities/{id:\d+}',                 'Facilities\Controllers\FacilityController@update',         ['auth', 'csrf'], 'facility.manage'],
    ['POST', '/facilities/{id:\d+}/toggle',          'Facilities\Controllers\FacilityController@toggle',         ['auth', 'csrf'], 'facility.manage'],
    ['POST', '/facilities/{id:\d+}/blackout',        'Facilities\Controllers\FacilityController@addBlackout',    ['auth', 'csrf'], 'facility.manage'],
    ['POST', '/facilities/{id:\d+}/blackout/remove', 'Facilities\Controllers\FacilityController@removeBlackout', ['auth', 'csrf'], 'facility.manage'],
];
