func()

in serve.go [150:161]


func (s *Server) HandleCx(pattern string, handler HandlerFunc) {
	pathParts := strings.Split(pattern, "/")
	if len(pathParts) >= 2 {
		pathPrefix := pathParts[1]
		_, ok := reservedPaths[pathPrefix]
		if ok {
			s.lg.Fatal("admin, health are reserved path prefixes")
		}
	}

	s.mux.Handle(pattern, handler)
}