From 6c2a17c8458414485b5e32b378834d1cfd2712a2 Mon Sep 17 00:00:00 2001 From: Jeff Malnick Date: Tue, 23 Jun 2020 10:34:07 -0700 Subject: [PATCH] feat: use root path for passthrough (#141) --- internal/servers/controller/handler.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/servers/controller/handler.go b/internal/servers/controller/handler.go index c430c64a5f..eedf9a9f3d 100644 --- a/internal/servers/controller/handler.go +++ b/internal/servers/controller/handler.go @@ -45,10 +45,10 @@ func (c *Controller) handler(props HandlerProperties) (http.Handler, error) { if err != nil { panic(err) } - c.logger.Warn("serving passthrough files at /passthrough", "path", abs) + c.logger.Warn("serving passthrough files at /", "path", abs) fs := http.FileServer(http.Dir(abs)) - prefixHandler := http.StripPrefix("/passthrough/", fs) - mux.Handle("/passthrough/", prefixHandler) + prefixHandler := http.StripPrefix("/", fs) + mux.Handle("/", prefixHandler) } h, err := handleGrpcGateway(c)