Skip to content

Commit

Permalink
api: add healthcheck route
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheu committed May 9, 2024
1 parent e8c9336 commit afb4b86
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,4 +220,10 @@ func configHandlers(e *echo.Echo) {
e.POST("/apps/:app/sync", appForceSyncRule)

e.GET("/jobs/:job/rules", jobRules)

e.GET("/healthcheck", healthcheck)
}

func healthcheck(c echo.Context) error {
return c.String(http.StatusOK, "OK")
}

0 comments on commit afb4b86

Please sign in to comment.