<?php
declare(strict_types=1);

return [
    ['GET',  '/death',                    'Death\Controllers\DeathController@index',        ['auth'], 'transfer.view'],
    ['GET',  '/death/create/{memberId}',  'Death\Controllers\DeathController@create',       ['auth'], 'transfer.initiate'],
    ['POST', '/death/store/{memberId}',   'Death\Controllers\DeathController@store',        ['auth', 'csrf'], 'transfer.initiate'],
    ['GET',  '/death/{id}',               'Death\Controllers\DeathController@show',         ['auth'], 'transfer.view'],
    ['GET',  '/death/{id}/fill-form',     'Death\Controllers\DeathController@fillForm',     ['auth'], 'transfer.initiate'],
    ['POST', '/death/{id}/fill-form',     'Death\Controllers\DeathController@saveFillForm', ['auth', 'csrf'], 'transfer.initiate'],
    ['POST', '/death/{id}/pay',           'Death\Controllers\DeathController@pay',          ['auth', 'csrf'], 'payment.collect'],
    ['POST', '/death/{id}/complete',      'Death\Controllers\DeathController@complete',     ['auth', 'csrf'], 'transfer.approve'],
];