Add missing slash

This commit is contained in:
Eliot Whalan 2016-06-23 11:43:40 +10:00
parent 4d1dd0a2a1
commit 8f9a335488
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ 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("/assets").Handler(http.StripPrefix("/assets", http.FileServer(http.Dir("assets"))))
router.PathPrefix("/assets").Handler(http.StripPrefix("/assets", http.FileServer(http.Dir("assets/"))))
err := http.ListenAndServe(PORT, router)
if err != nil {
log.Fatal(err)