From b5e72a88b96b82838236c6c5fb92c83cf9825653 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Wed, 30 Dec 2020 16:06:13 -0500 Subject: [PATCH] Use /verification staticly --- site-api.go | 1 + 1 file changed, 1 insertion(+) diff --git a/site-api.go b/site-api.go index 885cd5a..2e93152 100644 --- a/site-api.go +++ b/site-api.go @@ -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)) }