<?php
declare(strict_types=1);

return [
    ['GET',  '/match-center',                      'MatchCenter\Controllers\MatchCenterController@dashboard',  ['auth'], 'match_center.view'],
    ['GET',  '/match-center/create',               'MatchCenter\Controllers\MatchCenterController@create',     ['auth'], 'match_center.manage'],
    ['POST', '/match-center',                      'MatchCenter\Controllers\MatchCenterController@store',      ['auth', 'csrf'], 'match_center.manage'],
    ['GET',  '/match-center/{id:\d+}',             'MatchCenter\Controllers\MatchCenterController@show',       ['auth'], 'match_center.view'],
    ['POST', '/match-center/{id:\d+}/start',       'MatchCenter\Controllers\MatchCenterController@startMatch', ['auth', 'csrf'], 'match_center.live_entry'],
    ['POST', '/match-center/{id:\d+}/end',         'MatchCenter\Controllers\MatchCenterController@endMatch',   ['auth', 'csrf'], 'match_center.live_entry'],
    ['GET',  '/match-center/{id:\d+}/live',        'MatchCenter\Controllers\MatchCenterController@liveEntry',  ['auth'], 'match_center.live_entry'],
    ['POST', '/match-center/{id:\d+}/event',       'MatchCenter\Controllers\MatchCenterController@addEvent',   ['auth', 'csrf'], 'match_center.live_entry'],
    ['POST', '/match-center/{id:\d+}/score',       'MatchCenter\Controllers\MatchCenterController@updateScore',['auth', 'csrf'], 'match_center.live_entry'],
];
