MCPcopy Create free account
hub / github.com/dnote/dnote / Global

Function Global

pkg/server/middleware/middleware.go:65–72  ·  view source on GitHub ↗

Global is the middleware for all routes

(h http.Handler)

Source from the content-addressed store, hash-verified

63
64// Global is the middleware for all routes
65func Global(h http.Handler) http.Handler {
66 ret := h
67
68 ret = Logging(ret)
69 ret = methodOverride(ret)
70
71 return ret
72}

Callers

nothing calls this directly

Calls 2

LoggingFunction · 0.85
methodOverrideFunction · 0.85

Tested by

no test coverage detected