<?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', 'csrf'], 'support.create'],
    ['GET',  '/support/{id:\d+}',           'Support\Controllers\TicketController@show',       ['auth'], 'support.view'],
    ['POST', '/support/{id:\d+}/reply',     'Support\Controllers\TicketController@reply',      ['auth', 'csrf'], 'support.reply'],
    ['POST', '/support/{id:\d+}/close',     'Support\Controllers\TicketController@close',      ['auth', 'csrf'], 'support.close'],
    ['POST', '/support/{id:\d+}/reopen',    'Support\Controllers\TicketController@reopen',     ['auth', 'csrf'], 'support.manage'],
    ['POST', '/support/{id:\d+}/assign',    'Support\Controllers\TicketController@assign',     ['auth', 'csrf'], 'support.assign'],
    ['GET',  '/support/attachments/{id:\d+}', 'Support\Controllers\TicketController@download', ['auth'], 'support.view'],
];
