<?php
declare(strict_types=1);

return [
    ['GET',  '/divorce',                        'Divorce\Controllers\DivorceController@index',        ['auth'], 'transfer.view'],
    ['GET',  '/divorce/create/{memberId}',      'Divorce\Controllers\DivorceController@create',       ['auth'], 'transfer.initiate'],
    ['POST', '/divorce/store/{memberId}',       'Divorce\Controllers\DivorceController@store',        ['auth', 'csrf'], 'transfer.initiate'],
    ['GET',  '/divorce/{id}',                   'Divorce\Controllers\DivorceController@show',         ['auth'], 'transfer.view'],
    ['POST', '/divorce/{id}/board-approve',     'Divorce\Controllers\DivorceController@boardApprove', ['auth', 'csrf'], 'transfer.approve'],
    ['POST', '/divorce/{id}/board-reject',      'Divorce\Controllers\DivorceController@boardReject',  ['auth', 'csrf'], 'transfer.approve'],
    ['POST', '/divorce/{id}/pay',               'Divorce\Controllers\DivorceController@pay',          ['auth', 'csrf'], 'payment.collect'],
    ['POST', '/divorce/{id}/complete',          'Divorce\Controllers\DivorceController@complete',     ['auth', 'csrf'], 'transfer.approve'],
];