<?php
declare(strict_types=1);

return [
    ['GET',  '/forms',                              'Forms\Controllers\FormController@index',           ['auth'], 'forms.view'],
    ['GET',  '/forms/submissions',                  'Forms\Controllers\FormController@submissions',     ['auth'], 'forms.view'],
    ['GET',  '/forms/submissions/{id:\d+}',         'Forms\Controllers\FormController@show',            ['auth'], 'forms.view'],
    ['POST', '/forms/submissions/{id:\d+}/status',  'Forms\Controllers\FormController@updateStatus',    ['auth', 'csrf'], 'forms.view'],
    ['GET',  '/forms/render/{code}',                'Forms\Controllers\FormController@render',          ['auth'], 'forms.view'],
    ['POST', '/forms/submit/{code}',                'Forms\Controllers\FormController@submit',          ['auth', 'csrf'], 'forms.view'],
    ['GET',  '/forms/print/{id:\d+}',               'Forms\Controllers\FormController@printForm',       ['auth'], 'forms.view'],
    ['GET',  '/forms/builder',                      'Forms\Controllers\FormBuilderController@index',    ['auth'], 'forms.edit_schema'],
    ['GET',  '/forms/builder/{id:\d+}',             'Forms\Controllers\FormBuilderController@edit',     ['auth'], 'forms.edit_schema'],
    ['POST', '/forms/builder/{id:\d+}',             'Forms\Controllers\FormBuilderController@update',   ['auth', 'csrf'], 'forms.edit_schema'],
];