<?php
declare(strict_types=1);

return [
    ['GET',  '/receipts',              'Receipts\Controllers\ReceiptController@index',   ['auth'], 'payment.view'],
    ['GET',  '/receipts/voided',       'Receipts\Controllers\ReceiptController@voided',  ['auth'], 'payment.void_receipt'],
    ['GET',  '/receipts/{id}/print',   'Receipts\Controllers\ReceiptController@printReceipt', ['auth'], 'payment.view'],
    ['POST', '/receipts/{id}/void',    'Receipts\Controllers\ReceiptController@voidReceipt',  ['auth', 'csrf'], 'payment.void_receipt'],
];