feat: add healthz endpoint
This commit is contained in:
parent
6928b9a6ff
commit
08a0a7a61b
@ -82,6 +82,9 @@ func runServer(ctx context.Context, cfg *config.Config, logger *slog.Logger) err
|
||||
c.Next()
|
||||
logger.Info("request", "method", c.Request.Method, "path", c.FullPath(), "status", c.Writer.Status(), "latency", time.Since(start))
|
||||
})
|
||||
r.GET("/healthz", func(c *gin.Context) {
|
||||
c.Status(http.StatusOK)
|
||||
})
|
||||
|
||||
storeCfg := store.Config{
|
||||
Driver: cfg.Store.Driver,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user