<?php
declare(strict_types=1);

return [
    ['GET',  '/settings',                   'Settings\Controllers\SettingsController@index',       ['auth'], 'settings.view'],
    ['GET',  '/settings/group/{group}',      'Settings\Controllers\SettingsController@editGroup',   ['auth'], 'settings.edit'],
    ['POST', '/settings/group/{group}',      'Settings\Controllers\SettingsController@updateGroup', ['auth', 'csrf'], 'settings.edit'],

    // Appearance
    ['GET',  '/settings/appearance',           'Settings\Controllers\AppearanceController@index',  ['auth'], 'settings.edit'],
    ['POST', '/settings/appearance',           'Settings\Controllers\AppearanceController@update', ['auth', 'csrf'], 'settings.edit'],

    // Branding
    ['GET',  '/settings/branding',              'Settings\Controllers\BrandingController@index',              ['auth'], 'settings.edit'],
    ['POST', '/settings/branding/logo',         'Settings\Controllers\BrandingController@updateLogo',         ['auth', 'csrf'], 'settings.edit'],
    ['POST', '/settings/branding/carnet',       'Settings\Controllers\BrandingController@updateCarnetDesign', ['auth', 'csrf'], 'settings.edit'],
    ['POST', '/settings/branding/receipt',      'Settings\Controllers\BrandingController@updateReceiptDesign',['auth', 'csrf'], 'settings.edit'],

    // Smoke Test Tool
    ['GET',  '/tools/smoke-test',              'Settings\Controllers\SmokeTestController@run',  ['auth'], 'settings.edit'],
];