Fixed typo
Cette révision appartient à :
Parent
fa0e4ec4bd
révision
422d0f5ced
1 fichiers modifiés avec 6 ajouts et 6 suppressions
|
@ -11,12 +11,12 @@ var Router *mux.Router
|
|||
func init() {
|
||||
Router = mux.NewRouter()
|
||||
|
||||
cssHandler := http.FileServer(http.Dir("./static/css/"))
|
||||
jsHandler := http.FileServer(http.Dir("./static/js/"))
|
||||
imgHandler := http.FileServer(http.Dir("./static/img/"))
|
||||
http.Handle("/css/", http.StripPrefix("/static/css/", cssHandler))
|
||||
http.Handle("/js/", http.StripPrefix("/static/js/", jsHandler))
|
||||
http.Handle("/img/", http.StripPrefix("/static/img/", imgHandler))
|
||||
cssHandler := http.FileServer(http.Dir("./public/css/"))
|
||||
jsHandler := http.FileServer(http.Dir("./public/js/"))
|
||||
imgHandler := http.FileServer(http.Dir("./public/img/"))
|
||||
http.Handle("/css/", http.StripPrefix("/public/css/", cssHandler))
|
||||
http.Handle("/js/", http.StripPrefix("/public/js/", jsHandler))
|
||||
http.Handle("/img/", http.StripPrefix("/public/img/", imgHandler))
|
||||
|
||||
// Routes,
|
||||
Router.HandleFunc("/", HomeHandler).Name("home")
|
||||
|
|
Référencer dans un nouveau ticket