feat: auth and gateway support health check api
This commit is contained in:
@@ -2,6 +2,7 @@ package org.wfc.auth.controller;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
@@ -117,4 +118,10 @@ public class TokenController {
|
||||
if ("sys".equals(form.getAuthType())) {}
|
||||
return R.fail("authentication type not supported");
|
||||
}
|
||||
|
||||
@GetMapping("health")
|
||||
public R<?> health(HttpServletRequest request) {
|
||||
// TODO: check health
|
||||
return R.ok(null,"Auth is healthy");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user