feat: add URL query escape for top level directories
This commit is contained in:
parent
5c4c8269a4
commit
3833bd1951
2
main.go
2
main.go
@ -31,7 +31,7 @@ func main() {
|
|||||||
|
|
||||||
for dirName, dirToServe := range config.Config.ServeDirs {
|
for dirName, dirToServe := range config.Config.ServeDirs {
|
||||||
fmt.Println("Registering route /serve/" + url.QueryEscape(dirName))
|
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)
|
app.Use("/thumb", route.HandleThumb)
|
||||||
|
Loading…
Reference in New Issue
Block a user