<?php
declare(strict_types=1);

return [
    ['GET',  '/waivers',                    'Waiver\Controllers\WaiverController@index',   ['auth'], 'waiver.view'],
    ['GET',  '/waivers/create/{memberId}',  'Waiver\Controllers\WaiverController@create',  ['auth'], 'waiver.initiate'],
    ['POST', '/waivers/store/{memberId}',   'Waiver\Controllers\WaiverController@store',   ['auth'], 'waiver.initiate'],
    ['GET',  '/waivers/{id}',               'Waiver\Controllers\WaiverController@show',    ['auth'], 'waiver.view'],
    ['POST', '/waivers/{id}/pay',           'Waiver\Controllers\WaiverController@pay',     ['auth'], 'payment.collect'],
    ['POST', '/waivers/{id}/approve',       'Waiver\Controllers\WaiverController@approve', ['auth'], 'waiver.approve'],
    ['POST', '/waivers/{id}/reject',        'Waiver\Controllers\WaiverController@reject',  ['auth'], 'waiver.approve'],
    ['POST', '/waivers/{id}/complete',      'Waiver\Controllers\WaiverController@complete',['auth'], 'waiver.approve'],
];