Merge pull request #1 from Velixeor/fix/test-controller-returns-body
Fix: Test endpoint now returns hardcoded html page.
This commit is contained in:
commit
c2369d2587
@ -4,12 +4,14 @@ package ru.tubryansk.tdms.controller;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
|
||||
@Controller
|
||||
@RequestMapping("/")
|
||||
public class TestController {
|
||||
@GetMapping
|
||||
@ResponseBody
|
||||
public String root() {
|
||||
return """
|
||||
<!DOCTYPE html>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user