feat: Add request id middleware test
This commit is contained in:
9
internal/pkg/middleware/requestid.go
Normal file
9
internal/pkg/middleware/requestid.go
Normal file
@ -0,0 +1,9 @@
|
||||
package middleware
|
||||
|
||||
import "github.com/gin-gonic/gin"
|
||||
|
||||
func RequestID() gin.HandlerFunc {
|
||||
return func(ctx *gin.Context) {
|
||||
ctx.Set("X-Request-Id", "123")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user