<?php
declare(strict_types=1);

return [
    ['GET',  '/branches',            'Branches\Controllers\BranchController@index',  ['auth'], 'settings.view'],
    ['GET',  '/branches/create',     'Branches\Controllers\BranchController@create', ['auth'], 'settings.edit'],
    ['POST', '/branches',            'Branches\Controllers\BranchController@store',  ['auth', 'csrf'], 'settings.edit'],
    ['GET',  '/branches/{id:\d+}',       'Branches\Controllers\BranchController@show',   ['auth'], 'settings.view'],
    ['GET',  '/branches/{id:\d+}/edit',  'Branches\Controllers\BranchController@edit',   ['auth'], 'settings.edit'],
    ['POST', '/branches/{id:\d+}',       'Branches\Controllers\BranchController@update', ['auth', 'csrf'], 'settings.edit'],
];