<?php
declare(strict_types=1);

return [
    ['GET',  '/parents',                                     'ParentPortal\Controllers\ParentController@index',           ['auth'], 'parent.view'],
    ['GET',  '/parents/create',                              'ParentPortal\Controllers\ParentController@create',          ['auth'], 'parent.manage'],
    ['POST', '/parents',                                     'ParentPortal\Controllers\ParentController@store',           ['auth', 'csrf'], 'parent.manage'],
    ['GET',  '/parents/{id:\d+}',                            'ParentPortal\Controllers\ParentController@show',            ['auth'], 'parent.view'],
    ['POST', '/parents/{id:\d+}/link-player',                'ParentPortal\Controllers\ParentController@linkPlayer',      ['auth', 'csrf'], 'parent.manage'],
    ['POST', '/parents/{id:\d+}/unlink/{playerId:\d+}',      'ParentPortal\Controllers\ParentController@unlinkPlayer',    ['auth', 'csrf'], 'parent.manage'],
    ['GET',  '/parents/{id:\d+}/player/{playerId:\d+}',      'ParentPortal\Controllers\ParentController@playerDashboard', ['auth'], 'parent.view'],
];
