Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Cette révision appartient à :
akuma06 2017-05-07 00:26:02 +02:00
Parent fa0e4ec4bd
révision 422d0f5ced

Voir le fichier

@ -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")