feat: register logic refactor
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package xin.merlin.myplayerbackend.controller;
|
||||
|
||||
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import xin.merlin.myplayerbackend.utils.result.Response;
|
||||
import xin.merlin.myplayerbackend.utils.result.ResultCode;
|
||||
|
||||
@RestController
|
||||
public class HealthController {
|
||||
|
||||
@GetMapping("/health")
|
||||
Response health() {
|
||||
return Response.success(ResultCode.SUCCESS);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user