<?php
declare(strict_types=1);

return [
    ['GET',  '/sports-dashboard',           'Disciplines\Controllers\SportsDashboardController@index', ['auth'], 'discipline.view'],
    ['GET',  '/disciplines',                'Disciplines\Controllers\DisciplineController@index',   ['auth'], 'discipline.view'],
    ['GET',  '/disciplines/create',         'Disciplines\Controllers\DisciplineController@create',  ['auth'], 'discipline.manage'],
    ['POST', '/disciplines',                'Disciplines\Controllers\DisciplineController@store',   ['auth', 'csrf'], 'discipline.manage'],
    ['GET',  '/disciplines/{id:\d+}',       'Disciplines\Controllers\DisciplineController@show',    ['auth'], 'discipline.view'],
    ['GET',  '/disciplines/{id:\d+}/edit',  'Disciplines\Controllers\DisciplineController@edit',    ['auth'], 'discipline.manage'],
    ['POST', '/disciplines/{id:\d+}',       'Disciplines\Controllers\DisciplineController@update',  ['auth', 'csrf'], 'discipline.manage'],
    ['POST', '/disciplines/{id:\d+}/toggle','Disciplines\Controllers\DisciplineController@toggle',  ['auth', 'csrf'], 'discipline.manage'],
];
