httptreemux
httptreemux copied to clipboard
static url :`/files/index.html` and `/files/` not handled
url :/files/index.html
and /files/
not handled.
/files/ 404
/files/index.html redirected by fs
.
@dimfeld How can we handle /files/
?
contextMux = app.TreeMux.UsingContext()
contextMux.GET("/files/*", http.FileServer(Http.Dir(uploadPath)))
Originally posted by @pedia in https://github.com/dimfeld/httptreemux/issues/78#issuecomment-1364826526