Merge pull request #1 from Velixeor/fix/test-controller-returns-body

Fix: Test endpoint now returns hardcoded html page.
This commit is contained in:
Maksim Skobaro 2024-08-05 20:15:05 +03:00 committed by GitHub
commit c2369d2587
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,12 +4,14 @@ package ru.tubryansk.tdms.controller;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller @Controller
@RequestMapping("/") @RequestMapping("/")
public class TestController { public class TestController {
@GetMapping @GetMapping
@ResponseBody
public String root() { public String root() {
return """ return """
<!DOCTYPE html> <!DOCTYPE html>