MCPcopy
hub / github.com/dnote/dnote / NotSupported

Function NotSupported

pkg/server/middleware/helpers.go:90–92  ·  view source on GitHub ↗

NotSupported is the handler for the route that is no longer supported

(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

88
89// NotSupported is the handler for the route that is no longer supported
90func NotSupported(w http.ResponseWriter, r *http.Request) {
91 http.Error(w, "API version is not supported. Please upgrade your client.", http.StatusGone)
92}
93
94// getSessionKeyFromCookie reads and returns a session key from the cookie sent by the
95// request. If no session key is found, it returns an empty string

Callers

nothing calls this directly

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected