<?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'], 'fine.impose'],
    ['GET',  '/fines',                          'Fines\Controllers\FineController@index',          ['auth'], 'fine.view'],
    ['POST', '/fines/impose/{violationId}',     'Fines\Controllers\FineController@impose',         ['auth'], 'fine.impose'],
    ['POST', '/fines/{id}/pay',                 'Fines\Controllers\FineController@pay',            ['auth'], 'fine.collect'],
    ['POST', '/fines/{id}/appeal',              'Fines\Controllers\FineController@submitAppeal',   ['auth'], 'fine.view'],
    ['POST', '/fines/{id}/appeal-decide',       'Fines\Controllers\FineController@decideAppeal',   ['auth'], 'fine.impose'],
    ['POST', '/fines/{id}/waive',               'Fines\Controllers\FineController@waive',          ['auth'], 'fine.waive'],
];