mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-31 01:10:20 -06:00
13 lines
234 B
Go
13 lines
234 B
Go
package middleware
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/ascarter/requestid"
|
|
)
|
|
|
|
// RequestID is a convenient middleware to inject a request id.
|
|
func RequestID(next http.Handler) http.Handler {
|
|
return requestid.RequestIDHandler(next)
|
|
}
|