File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -441,9 +441,9 @@ func main() {
441
441
router .HandleFunc ("/error/{errorcode}" , func (w http.ResponseWriter , r * http.Request ) {
442
442
ErrorPage (db , w , r )
443
443
}).Methods ("GET" )
444
- router .PathPrefix ("/css/" ).Handler (http .FileServer (http .Dir (STATIC_FILES_DIR + "/css/" )))
445
- router .PathPrefix ("/js/" ).Handler (http .FileServer (http .Dir (STATIC_FILES_DIR + "/js/" )))
446
- router .PathPrefix ("/img/" ).Handler (http .FileServer (http .Dir (STATIC_FILES_DIR + "/img/" )))
447
- router .PathPrefix ("/fonts/" ).Handler (http .FileServer (http .Dir (STATIC_FILES_DIR + "/fonts/" )))
444
+ router .PathPrefix ("/css/{css} " ).Handler (http .StripPrefix ( "/css/" , http . FileServer (http .Dir (STATIC_FILES_DIR + "/css/" ) )))
445
+ router .PathPrefix ("/js/{js} " ).Handler (http .StripPrefix ( "/js/" , http . FileServer (http .Dir (STATIC_FILES_DIR + "/js/" ) )))
446
+ router .PathPrefix ("/img/{img} " ).Handler (http .StripPrefix ( "/img/" , http . FileServer (http .Dir (STATIC_FILES_DIR + "/img/" ) )))
447
+ router .PathPrefix ("/fonts/{fonts} " ).Handler (http .StripPrefix ( "/fonts/" , http . FileServer (http .Dir (STATIC_FILES_DIR + "/fonts/" ) )))
448
448
log .Fatal (http .ListenAndServe (":1337" , router ))
449
449
}
You can’t perform that action at this time.
0 commit comments