chore: add healthz point

This commit is contained in:
Steven
2024-01-10 00:28:57 +08:00
parent d46e83b735
commit 4bc2a0ff42
4 changed files with 23 additions and 13 deletions

View File

@ -103,6 +103,11 @@ func NewServer(ctx context.Context, profile *profile.Profile, store *store.Store
}
s.Secret = secret
// Register healthz endpoint.
e.GET("/healthz", func(c echo.Context) error {
return c.String(http.StatusOK, "Service ready.")
})
rootGroup := e.Group("")
// Register API v1 routes.
apiV1Service := apiv1.NewAPIV1Service(profile, store, licenseService)