<?php
declare(strict_types=1);

return [
    ['GET',  '/users',               'Users\Controllers\UserController@index',     ['auth'], 'user.view'],
    ['GET',  '/users/create',        'Users\Controllers\UserController@create',    ['auth'], 'user.create'],
    ['POST', '/users',               'Users\Controllers\UserController@store',     ['auth', 'csrf'], 'user.create'],
    ['GET',  '/users/{id:\d+}',      'Users\Controllers\UserController@show',      ['auth'], 'user.view'],
    ['GET',  '/users/{id:\d+}/edit', 'Users\Controllers\UserController@edit',      ['auth'], 'user.edit'],
    ['POST', '/users/{id:\d+}',      'Users\Controllers\UserController@update',    ['auth', 'csrf'], 'user.edit'],
    ['GET',  '/users/{id:\d+}/activity',    'Users\Controllers\UserController@activity',                    ['auth'], 'user.view'],
    ['GET',  '/users/{id:\d+}/permissions', 'Users\Controllers\UserPermissionController@edit',             ['auth'], 'user.manage_permissions'],
    ['POST', '/users/{id:\d+}/permissions', 'Users\Controllers\UserPermissionController@update',           ['auth', 'csrf'], 'user.manage_permissions'],
    ['GET',  '/users/preview-permissions',  'Users\Controllers\UserPermissionController@preview',          ['auth'], 'user.manage_permissions'],
];