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