<?php
declare(strict_types=1);

return [
    ['GET',  '/academies',                             'Academies\Controllers\AcademyController@index',          ['auth'], 'academy.view'],
    ['GET',  '/academies/create',                      'Academies\Controllers\AcademyController@create',         ['auth'], 'academy.manage'],
    ['POST', '/academies',                             'Academies\Controllers\AcademyController@store',          ['auth', 'csrf'], 'academy.manage'],
    ['GET',  '/academies/{id:\d+}',                    'Academies\Controllers\AcademyController@show',           ['auth'], 'academy.view'],
    ['GET',  '/academies/{id:\d+}/edit',               'Academies\Controllers\AcademyController@edit',           ['auth'], 'academy.manage'],
    ['POST', '/academies/{id:\d+}',                    'Academies\Controllers\AcademyController@update',         ['auth', 'csrf'], 'academy.manage'],
    ['POST', '/academies/{id:\d+}/toggle',             'Academies\Controllers\AcademyController@toggle',         ['auth', 'csrf'], 'academy.manage'],
    ['POST', '/academies/{id:\d+}/levels',             'Academies\Controllers\AcademyController@addLevel',       ['auth', 'csrf'], 'academy.manage'],
    ['POST', '/academies/{id:\d+}/levels/remove',      'Academies\Controllers\AcademyController@removeLevel',    ['auth', 'csrf'], 'academy.manage'],
    ['POST', '/academies/{id:\d+}/schedules',          'Academies\Controllers\AcademyController@addSchedule',    ['auth', 'csrf'], 'academy.manage'],
    ['POST', '/academies/{id:\d+}/schedules/remove',   'Academies\Controllers\AcademyController@removeSchedule', ['auth', 'csrf'], 'academy.manage'],
];
