package ch.polgrabia.demos.spring_demo1.controllers;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @RequestMapping(value = "/info", method = RequestMethod.GET)
    public ResponseEntity<TestResponse> handleInfo() {
        return ResponseEntity.ok(new TestResponse("ok"));
    }
}
