This commit is contained in:
Paul Tagliamonte 2015-07-28 12:27:34 -04:00
parent 5dd63c90fb
commit 2fd844bd80

View file

@ -82,7 +82,7 @@ func main() {
mux.HandleFunc("/", func(w http.ResponseWriter, req *http.Request) { mux.HandleFunc("/", func(w http.ResponseWriter, req *http.Request) {
route := req.URL.Path route := req.URL.Path
if val, ok := routes[route]; ok { if val, ok := routes[route]; ok {
writePageGo(w, req.Host+route, val, 200) writePageGo(w, "pault.ag"+val.Path, val, 200)
} else { } else {
writePageError(w, ":(", 404) writePageError(w, ":(", 404)
} }