<?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'], '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'], 'child.edit'],
    ['POST', '/members/{memberId}/children/{id}/archive', 'Children\Controllers\ChildController@archive', ['auth'], 'child.remove'],
    ['POST', '/members/{memberId}/children/{id}/freeze',  'Children\Controllers\ChildController@freeze',  ['auth'], 'child.freeze'],
    ['POST', '/api/children/calculate-fee',               'Children\Controllers\ChildController@calculateFee', ['auth'], 'child.add'],
];