diff --git a/static/index.html b/assets/index.html similarity index 84% rename from static/index.html rename to assets/index.html index 760468b..b1ef521 100644 --- a/static/index.html +++ b/assets/index.html @@ -11,10 +11,10 @@ - + - - + + @@ -41,8 +41,8 @@ - - + + diff --git a/main.go b/main.go index ad2af2e..1fe3c1c 100644 --- a/main.go +++ b/main.go @@ -219,8 +219,7 @@ func main() { router.HandleFunc("/save", saveHandler) router.HandleFunc("/save/{output}", saveHandler) router.HandleFunc("/del/{pasteId}/{delKey}", delHandler) - router.PathPrefix("/").Handler(http.StripPrefix("/", http.FileServer(http.Dir("static/")))) - router.PathPrefix("/assets").Handler(http.StripPrefix("/assets", http.FileServer(http.Dir("assets/")))) + router.PathPrefix("/").Handler(http.StripPrefix("/", http.FileServer(http.Dir("assets/")))) err := http.ListenAndServe(PORT, router) if err != nil { log.Fatal(err)