21 lines
573 B
Java
21 lines
573 B
Java
|
package edu.whut.smilepicturebackend.controller;
|
||
|
import edu.whut.smilepicturebackend.common.BaseResponse;
|
||
|
import edu.whut.smilepicturebackend.common.ResultUtils;
|
||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||
|
import org.springframework.web.bind.annotation.RestController;
|
||
|
|
||
|
@RestController
|
||
|
@RequestMapping("/")
|
||
|
public class MainController {
|
||
|
|
||
|
/**
|
||
|
* 健康检查
|
||
|
*/
|
||
|
@GetMapping("/health")
|
||
|
public BaseResponse<String> health() {
|
||
|
return ResultUtils.success("ok");
|
||
|
}
|
||
|
|
||
|
}
|