<?php

namespace CpCreation\VitiCore\Bridge\Symfony\Bundle\Controller\Admin;

use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\ExpressionLanguage\Expression;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;
use Symfony\Component\Security\Http\Attribute\IsGranted;

#[Route('/parametres')]
#[IsGranted(new Expression("is_granted('ROLE_ADMIN') or is_granted('ROLE_TRACKING') or is_granted('ROLE_SHIPPING')"))]
final class SettingsController extends AbstractController
{
    #[Route('', name: 'admin_settings')]
    public function index(): Response
    {
        return $this->render('@CpCreationVitiCore/admin/settings/index.html.twig');
    }
}
