mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-20 17:54:30 +08:00
add comments
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
||||
|
||||
const requestIdHeader = "X-Request-ID"
|
||||
|
||||
// RequestId generates a new request id and add it to context and response header
|
||||
func RequestId(config *settings.Config) core.MiddlewareHandlerFunc {
|
||||
return func(c *core.Context) {
|
||||
if requestid.Container.Current == nil {
|
||||
|
||||
Reference in New Issue
Block a user