<?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}/pay',           'Divorce\Controllers\DivorceController@pay',     ['auth', 'csrf'], 'payment.collect'],
    ['POST', '/divorce/{id}/complete',      'Divorce\Controllers\DivorceController@complete',['auth', 'csrf'], 'transfer.approve'],
];