<?php
declare(strict_types=1);

return [
    ['GET',  '/coaches',                        'Coaches\Controllers\CoachController@index',          ['auth'], 'coach.view'],
    ['GET',  '/coaches/create',                 'Coaches\Controllers\CoachController@create',         ['auth'], 'coach.manage'],
    ['POST', '/coaches',                        'Coaches\Controllers\CoachController@store',          ['auth', 'csrf'], 'coach.manage'],
    ['GET',  '/coaches/{id:\d+}',               'Coaches\Controllers\CoachController@show',           ['auth'], 'coach.view'],
    ['GET',  '/coaches/{id:\d+}/edit',          'Coaches\Controllers\CoachController@edit',           ['auth'], 'coach.manage'],
    ['POST', '/coaches/{id:\d+}',               'Coaches\Controllers\CoachController@update',         ['auth', 'csrf'], 'coach.manage'],
    ['POST', '/coaches/{id:\d+}/toggle',        'Coaches\Controllers\CoachController@toggle',         ['auth', 'csrf'], 'coach.manage'],
    ['POST', '/coaches/{id:\d+}/assign',        'Coaches\Controllers\CoachController@assign',         ['auth', 'csrf'], 'coach.manage'],
    ['POST', '/coaches/{id:\d+}/unassign',      'Coaches\Controllers\CoachController@unassign',       ['auth', 'csrf'], 'coach.manage'],
    ['POST', '/coaches/{id:\d+}/availability',  'Coaches\Controllers\CoachController@saveAvailability', ['auth', 'csrf'], 'coach.manage'],
];
