(c *gin.Context)
| 849 | } |
| 850 | |
| 851 | func (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 | |
| 869 | func (s *Server) serveManagementControlPanel(c *gin.Context) { |
| 870 | cfg := s.cfg |
no test coverage detected