Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

get faq page working

Cette révision appartient à :
Eliot Whalan 2017-05-04 12:29:22 +10:00
Parent e653609608
révision 8a0961fdd5

Voir le fichier

@ -174,7 +174,7 @@ func safe(s string) template.URL {
}
func faqHandler(w http.ResponseWriter, r *http.Request) {
err = templates.ExecuteTemplate(w, "FAQ.html", &b)
err := templates.ExecuteTemplate(w, "FAQ.html", "")
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
}
@ -224,7 +224,7 @@ func rootHandler(w http.ResponseWriter, r *http.Request) {
func main() {
dbHandle = getDBHandle()
router := mux.NewRouter()
router := mux.NewRouter().StrictSlash(true)
cssHandler := http.FileServer(http.Dir("./css/"))
jsHandler := http.FileServer(http.Dir("./js/"))