<?php
declare(strict_types=1);

return [
    ['GET',  '/violations',                     'Fines\Controllers\ViolationController@index',     ['auth'], 'fine.view'],
    ['GET',  '/violations/create/{memberId}',   'Fines\Controllers\ViolationController@create',    ['auth'], 'fine.impose'],
    ['POST', '/violations/store/{memberId}',    'Fines\Controllers\ViolationController@store',     ['auth', 'csrf'], 'fine.impose'],
    ['GET',  '/fines',                          'Fines\Controllers\FineController@index',          ['auth'], 'fine.view'],
    ['POST', '/fines/impose/{violationId}',     'Fines\Controllers\FineController@impose',         ['auth', 'csrf'], 'fine.impose'],
    ['POST', '/fines/{id}/pay',                 'Fines\Controllers\FineController@pay',            ['auth', 'csrf'], 'fine.collect'],
    ['POST', '/fines/{id}/appeal',              'Fines\Controllers\FineController@submitAppeal',   ['auth', 'csrf'], 'fine.view'],
    ['POST', '/fines/{id}/appeal-decide',       'Fines\Controllers\FineController@decideAppeal',   ['auth', 'csrf'], 'fine.impose'],
    ['POST', '/fines/{id}/waive',               'Fines\Controllers\FineController@waive',          ['auth', 'csrf'], 'fine.waive'],
];