<?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'],

    // Waitlist
    ['GET',  '/waitlist',                    'Disciplines\Controllers\WaitlistController@index',      ['auth'], 'waitlist.view'],
    ['GET',  '/waitlist/add',                'Disciplines\Controllers\WaitlistController@addPlayer',  ['auth'], 'waitlist.manage'],
    ['POST', '/waitlist',                    'Disciplines\Controllers\WaitlistController@store',      ['auth', 'csrf'], 'waitlist.manage'],
    ['POST', '/waitlist/{id:\d+}/offer',     'Disciplines\Controllers\WaitlistController@offerSpot',  ['auth', 'csrf'], 'waitlist.manage'],
    ['POST', '/waitlist/{id:\d+}/accept',    'Disciplines\Controllers\WaitlistController@acceptOffer',['auth', 'csrf'], 'waitlist.manage'],
    ['POST', '/waitlist/{id:\d+}/remove',    'Disciplines\Controllers\WaitlistController@remove',     ['auth', 'csrf'], 'waitlist.manage'],
];
