<?php
declare(strict_types=1);

return [
    ['GET',  '/roles',           'Roles\Controllers\RoleController@index',  ['auth'], 'role.view'],
    ['GET',  '/roles/create',    'Roles\Controllers\RoleController@create', ['auth'], 'role.create'],
    ['POST', '/roles',           'Roles\Controllers\RoleController@store',  ['auth', 'csrf'], 'role.create'],
    ['GET',  '/roles/{id}/edit', 'Roles\Controllers\RoleController@edit',   ['auth'], 'role.edit'],
    ['POST', '/roles/{id}',      'Roles\Controllers\RoleController@update', ['auth', 'csrf'], 'role.edit'],
];
