MCPcopy
hub / github.com/kopia/kopia / handleServerControlAPIPossiblyNotConnected

Method handleServerControlAPIPossiblyNotConnected

internal/server/server.go:340–344  ·  view source on GitHub ↗
(f apiRequestFunc)

Source from the content-addressed store, hash-verified

338}
339
340func (s *Server) handleServerControlAPIPossiblyNotConnected(f apiRequestFunc) http.HandlerFunc {
341 return s.handleRequestPossiblyNotConnected(requireServerControlUser, csrfTokenNotRequired, func(ctx context.Context, rc requestContext) (any, *apiError) {
342 return f(ctx, rc)
343 })
344}
345
346func (s *Server) handleUI(f apiRequestFunc) http.HandlerFunc {
347 return s.handleRequestPossiblyNotConnected(requireUIUser, csrfTokenRequired, func(ctx context.Context, rc requestContext) (any, *apiError) {

Callers 2

Tested by

no test coverage detected