mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-07-06 18:20:15 +00:00
feat: add option to disable scalar
This commit is contained in:
@@ -35,6 +35,6 @@ func NewHealthController(i HealthControllerInput) *HealthController {
|
||||
func (controller *HealthController) healthHandler(c *gin.Context) {
|
||||
c.JSON(200, SimpleResponse{
|
||||
Status: 200,
|
||||
Message: "OK",
|
||||
Message: "Healthy",
|
||||
})
|
||||
}
|
||||
|
||||
@@ -23,9 +23,9 @@ func TestHealthController(t *testing.T) {
|
||||
path: "/api/healthz",
|
||||
method: "GET",
|
||||
expected: func() string {
|
||||
expectedHealthResponse := map[string]any{
|
||||
"status": 200,
|
||||
"message": "Healthy",
|
||||
expectedHealthResponse := SimpleResponse{
|
||||
Status: 200,
|
||||
Message: "Healthy",
|
||||
}
|
||||
bytes, err := json.Marshal(expectedHealthResponse)
|
||||
require.NoError(t, err)
|
||||
@@ -37,9 +37,9 @@ func TestHealthController(t *testing.T) {
|
||||
path: "/api/healthz",
|
||||
method: "HEAD",
|
||||
expected: func() string {
|
||||
expectedHealthResponse := map[string]any{
|
||||
"status": 200,
|
||||
"message": "Healthy",
|
||||
expectedHealthResponse := SimpleResponse{
|
||||
Status: 200,
|
||||
Message: "Healthy",
|
||||
}
|
||||
bytes, err := json.Marshal(expectedHealthResponse)
|
||||
require.NoError(t, err)
|
||||
|
||||
Reference in New Issue
Block a user