package com.example.springip.lab3.mvc;

import jakarta.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ModelAttribute;

@Controller
public class HomeController {

  @ModelAttribute("requestURI")
  public String requestURI(final HttpServletRequest request) {
    return request.getRequestURI();
  }
}