path
This commit is contained in:
parent
5dd63c90fb
commit
2fd844bd80
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -82,7 +82,7 @@ func main() {
|
|||
mux.HandleFunc("/", func(w http.ResponseWriter, req *http.Request) {
|
||||
route := req.URL.Path
|
||||
if val, ok := routes[route]; ok {
|
||||
writePageGo(w, req.Host+route, val, 200)
|
||||
writePageGo(w, "pault.ag"+val.Path, val, 200)
|
||||
} else {
|
||||
writePageError(w, ":(", 404)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue