<?php

declare(strict_types=1);

namespace App\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;

class AuthController extends AbstractController
{
    #[Route('/login', name: 'auth_login', methods: ['GET'])]
    public function login(Request $request): Response
    {
        return $this->render('auth/login.html.twig', [
            'next' => (string) $request->query->get('next', ''),
        ]);
    }

    #[Route('/register', name: 'auth_register', methods: ['GET'])]
    public function register(Request $request): Response
    {
        return $this->render('auth/register.html.twig', [
            'next' => (string) $request->query->get('next', ''),
        ]);
    }
}
