<?php
declare(strict_types=1);

return [
    ['GET',  '/members/{memberId}/children/create',       'Children\Controllers\ChildController@create',  ['auth'], 'child.add'],
    ['POST', '/members/{memberId}/children',              'Children\Controllers\ChildController@store',   ['auth', 'csrf'], 'child.add'],
    ['GET',  '/members/{memberId}/children/{id}',         'Children\Controllers\ChildController@show',    ['auth'], 'child.view'],
    ['GET',  '/members/{memberId}/children/{id}/edit',    'Children\Controllers\ChildController@edit',    ['auth'], 'child.edit'],
    ['POST', '/members/{memberId}/children/{id}',         'Children\Controllers\ChildController@update',  ['auth', 'csrf'], 'child.edit'],
    ['POST', '/members/{memberId}/children/{id}/archive', 'Children\Controllers\ChildController@archive', ['auth', 'csrf'], 'child.remove'],
    ['POST', '/members/{memberId}/children/{id}/freeze',  'Children\Controllers\ChildController@freeze',  ['auth', 'csrf'], 'child.freeze'],
    ['POST', '/api/children/calculate-fee',               'Children\Controllers\ChildController@calculateFee', ['auth'], 'child.add'],
];