<?php
declare(strict_types=1);

return [
    ['GET',  '/documents',                     'Documents\Controllers\DocumentController@index',           ['auth'], 'document.view'],
    ['GET',  '/documents/upload/{memberId}',   'Documents\Controllers\DocumentController@upload',          ['auth'], 'document.upload'],
    ['POST', '/documents/upload/{memberId}',   'Documents\Controllers\DocumentController@upload',          ['auth'], 'document.upload'],
    ['GET',  '/documents/{id}/download',       'Documents\Controllers\DocumentController@download',        ['auth'], 'document.view'],
    ['GET',  '/documents/{id}/preview',        'Documents\Controllers\DocumentController@preview',         ['auth'], 'document.view'],
    ['POST', '/documents/{id}/archive',        'Documents\Controllers\DocumentController@archive',         ['auth'], 'document.delete'],
    ['GET',  '/documents/member/{memberId}',   'Documents\Controllers\DocumentController@memberDocuments', ['auth'], 'document.view'],
];