mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-24 16:47:47 +00:00
e38abdcdf3
Queries the data in the storage layser at the timestamp when the call hit the API layer
14 lines
298 B
Go
14 lines
298 B
Go
package middleware
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/zitadel/zitadel/internal/api/call"
|
|
)
|
|
|
|
func CallDurationHandler(next http.Handler) http.Handler {
|
|
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
next.ServeHTTP(w, r.WithContext(call.WithTimestamp(r.Context())))
|
|
})
|
|
}
|