get faq page working
Cette révision appartient à :
Parent
2780da0ee9
révision
485aa3f458
1 fichiers modifiés avec 2 ajouts et 2 suppressions
4
main.go
4
main.go
|
@ -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/"))
|
||||
|
|
Référencer dans un nouveau ticket