<?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'],

    // 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'],
];