diff --git a/main.go b/main.go index a784b47..f1accab 100644 --- a/main.go +++ b/main.go @@ -220,6 +220,9 @@ func main() { router.HandleFunc("/save/{output}", saveHandler) router.HandleFunc("/del/{pasteId}/{delKey}", delHandler) router.PathPrefix("/").Handler(http.StripPrefix("/", http.FileServer(http.Dir("static/")))) + router.PathPrefix("/css").Handler(http.StripPrefix("/", http.FileServer(http.Dir("static/css/")))) + router.PathPrefix("/js").Handler(http.StripPrefix("/", http.FileServer(http.Dir("static/js/")))) + router.PathPrefix("/fonts").Handler(http.StripPrefix("/", http.FileServer(http.Dir("static/fonts/")))) err := http.ListenAndServe(PORT, router) if err != nil { log.Fatal(err)