mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-07-07 10:40:16 +00:00
feat: add swagger comments for context, health, oauth and oidc controllers
This commit is contained in:
@@ -23,9 +23,18 @@ func NewHealthController(i HealthControllerInput) *HealthController {
|
||||
return controller
|
||||
}
|
||||
|
||||
// HealthCheck godoc
|
||||
//
|
||||
// @Summary Healthcheck
|
||||
// @Description Check if the server is up and running
|
||||
// @Tags health
|
||||
// @Produce json
|
||||
// @Success 200 {object} SimpleResponse
|
||||
// @Router /api/healthz [get]
|
||||
// @Router /api/healthz [head]
|
||||
func (controller *HealthController) healthHandler(c *gin.Context) {
|
||||
c.JSON(200, gin.H{
|
||||
"status": 200,
|
||||
"message": "Healthy",
|
||||
c.JSON(200, SimpleResponse{
|
||||
Status: 200,
|
||||
Message: "OK",
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user