<?php
declare(strict_types=1);

return [
    ['GET',  '/support',                    'Support\Controllers\TicketController@index',      ['auth'], 'support.view'],
    ['GET',  '/support/create',             'Support\Controllers\TicketController@create',     ['auth'], 'support.create'],
    ['POST', '/support',                    'Support\Controllers\TicketController@store',      ['auth'], 'support.create'],
    ['GET',  '/support/{id:\d+}',           'Support\Controllers\TicketController@show',       ['auth'], 'support.view'],
    ['POST', '/support/{id:\d+}/reply',     'Support\Controllers\TicketController@reply',      ['auth'], 'support.reply'],
    ['POST', '/support/{id:\d+}/close',     'Support\Controllers\TicketController@close',      ['auth'], 'support.close'],
    ['POST', '/support/{id:\d+}/reopen',    'Support\Controllers\TicketController@reopen',     ['auth'], 'support.manage'],
    ['POST', '/support/{id:\d+}/assign',    'Support\Controllers\TicketController@assign',     ['auth'], 'support.assign'],
    ['GET',  '/support/attachments/{id:\d+}', 'Support\Controllers\TicketController@download', ['auth'], 'support.view'],
];
