<?php
declare(strict_types=1);

return [
    ['GET',  '/members/{memberId}/spouses/create',       'Spouses\Controllers\SpouseController@create',  ['auth'], 'spouse.add'],
    ['POST', '/members/{memberId}/spouses',              'Spouses\Controllers\SpouseController@store',   ['auth'], 'spouse.add'],
    ['GET',  '/members/{memberId}/spouses/{id}',         'Spouses\Controllers\SpouseController@show',    ['auth'], 'spouse.view'],
    ['GET',  '/members/{memberId}/spouses/{id}/edit',    'Spouses\Controllers\SpouseController@edit',    ['auth'], 'spouse.edit'],
    ['POST', '/members/{memberId}/spouses/{id}',         'Spouses\Controllers\SpouseController@update',  ['auth'], 'spouse.edit'],
    ['POST', '/members/{memberId}/spouses/{id}/archive', 'Spouses\Controllers\SpouseController@archive', ['auth'], 'spouse.remove'],
    ['POST', '/api/spouses/calculate-fee',               'Spouses\Controllers\SpouseController@calculateFee', ['auth'], 'spouse.add'],
];