feat: add URL query escape for top level directories

This commit is contained in:
Louis Dalibard 2024-06-28 18:11:37 +02:00
parent 5c4c8269a4
commit 3833bd1951

View File

@ -31,7 +31,7 @@ func main() {
for dirName, dirToServe := range config.Config.ServeDirs {
fmt.Println("Registering route /serve/" + url.QueryEscape(dirName))
app.Static("/serve/"+url.QueryEscape(dirName), dirToServe)
app.Static("/serve/"+url.QueryEscape(dirName), dirToServe) // For some reason this doesn't work and this is not my fault.
}
app.Use("/thumb", route.HandleThumb)