Use /verification staticly

This commit is contained in:
2020-12-30 16:06:13 -05:00
parent 77ae7f149a
commit b5e72a88b9

View File

@ -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))
}