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

Method pluginResourceNoRoute

internal/api/server.go:851–867  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

849}
850
851func (s *Server) pluginResourceNoRoute(c *gin.Context) {
852 if s == nil || c == nil || c.Request == nil || c.Request.URL == nil {
853 if c != nil {
854 c.AbortWithStatus(http.StatusNotFound)
855 }
856 return
857 }
858 if s.cfg == nil || s.cfg.Home.Enabled || s.pluginHost == nil {
859 c.AbortWithStatus(http.StatusNotFound)
860 return
861 }
862 if s.pluginHost.ServeResourceHTTP(c.Writer, c.Request) {
863 c.Abort()
864 return
865 }
866 c.AbortWithStatus(http.StatusNotFound)
867}
868
869func (s *Server) serveManagementControlPanel(c *gin.Context) {
870 cfg := s.cfg

Callers 1

Calls 1

ServeResourceHTTPMethod · 0.80

Tested by

no test coverage detected