MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / managementAvailabilityMiddleware

Method managementAvailabilityMiddleware

internal/api/server.go:763–770  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

761}
762
763func (s *Server) managementAvailabilityMiddleware() gin.HandlerFunc {
764 return func(c *gin.Context) {
765 if !s.managementAvailable(c) {
766 return
767 }
768 c.Next()
769 }
770}
771
772func (s *Server) managementAvailable(c *gin.Context) bool {
773 if s == nil || s.cfg == nil {

Callers 1

Calls 2

managementAvailableMethod · 0.95
NextMethod · 0.80

Tested by

no test coverage detected