package com.pablotj.ia.chat.boot.adapter.controller;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/chat")
public class ChatPageController {

    private static final Logger LOGGER = LogManager.getLogger(ChatPageController.class);

    @GetMapping
    public String showChat(Model model) {
        LOGGER.debug("Accessing to chat");
        return "chat";
    }
}