feat(httpapi): lab3 add X-Instance-Id response header on every reply

This commit is contained in:
Голиков Maximillian Антон
2026-10-06 19:46:29 +03:00
parent a7ba75be4b
commit 0afad66b84
2 changed files with 32 additions and 0 deletions
+1
View File
@@ -22,6 +22,7 @@ func NewRouter(h Handlers, auth gin.HandlerFunc) *gin.Engine {
r.Use(gin.Logger())
r.Use(gin.Recovery())
r.Use(middleware.RequestID())
r.Use(middleware.Instance())
r.GET("/health/live", h.Health.Live)
r.GET("/health/ready", h.Health.Ready)