<?php
declare(strict_types=1);

return [
    ['GET',  '/carnets',                       'Carnets\Controllers\CarnetController@index',      ['auth'], 'carnet.view'],
    ['GET',  '/carnets/issue/{memberId}',      'Carnets\Controllers\CarnetController@issue',      ['auth'], 'carnet.issue'],
    ['POST', '/carnets/issue/{memberId}',      'Carnets\Controllers\CarnetController@issue',      ['auth'], 'carnet.issue'],
    ['GET',  '/carnets/{id}/print',            'Carnets\Controllers\CarnetController@print',      ['auth'], 'carnet.print'],
    ['POST', '/carnets/{id}/deactivate',       'Carnets\Controllers\CarnetController@deactivate', ['auth'], 'carnet.deactivate'],
    ['GET',  '/carnets/replace/{memberId}',    'Carnets\Controllers\CarnetController@replace',    ['auth'], 'carnet.issue'],
];