httptreemux icon indicating copy to clipboard operation
httptreemux copied to clipboard

static url :`/files/index.html` and `/files/` not handled

Open pedia opened this issue 2 years ago • 0 comments

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

pedia avatar Dec 26 '22 02:12 pedia