<?php
declare(strict_types=1);

return [
    ['GET',  '/rules',                    'Rules\Controllers\RuleController@index',    ['auth'], 'rules.view'],
    ['GET',  '/rules/{id:\d+}/edit',      'Rules\Controllers\RuleController@edit',     ['auth'], 'rules.edit'],
    ['POST', '/rules/{id:\d+}',           'Rules\Controllers\RuleController@update',   ['auth', 'csrf'], 'rules.edit'],
    ['GET',  '/rules/{id:\d+}/history',   'Rules\Controllers\RuleController@history',  ['auth'], 'rules.view'],
    ['GET',  '/rules/{id:\d+}/simulate',  'Rules\Controllers\RuleController@simulate', ['auth'], 'rules.view'],
];