<?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'],
];