Browse Source

Use /verification staticly

hkremer/rebranding
Gregory Rudolph 4 years ago
parent
commit
b5e72a88b9
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 1
      site-api.go

1
site-api.go

@ -217,6 +217,7 @@ func runWeb() { @@ -217,6 +217,7 @@ func runWeb() {
router.HandleFunc("/api/user", getUser)
router.HandleFunc("/", greetUser)
router.PathPrefix("/static/").Handler(http.StripPrefix("/static/", http.FileServer(http.Dir("./static"))))
router.PathPrefix("/verifications/").Handler(http.StripPrefix("/verifications/", http.FileServer(http.Dir("./verifications"))))
log.LogInfo("Starting server")
log.LogErrorType(http.ListenAndServe(":8080", router))
}

Loading…
Cancel
Save