19 lines
426 B
Java
19 lines
426 B
Java
|
|
package com.example.scaffold.controller;
|
||
|
|
|
||
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
||
|
|
import org.springframework.web.bind.annotation.RestController;
|
||
|
|
|
||
|
|
@RestController
|
||
|
|
public class HelloController {
|
||
|
|
|
||
|
|
@GetMapping("/api/hello")
|
||
|
|
public String hello() {
|
||
|
|
return "Hello from Spring Boot Scaffold!";
|
||
|
|
}
|
||
|
|
|
||
|
|
@GetMapping("/api/health")
|
||
|
|
public String health() {
|
||
|
|
return "OK";
|
||
|
|
}
|
||
|
|
}
|