From 7c7857c1d78973f6b06b2157fc79b483fb9a0b3a Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Wed, 30 Dec 2020 21:52:56 -0500 Subject: [PATCH] Redo with React --- site-api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site-api.go b/site-api.go index b751af4..dd77696 100644 --- a/site-api.go +++ b/site-api.go @@ -223,12 +223,12 @@ func runWeb() { router.HandleFunc("/api/login", tryLogin) router.HandleFunc("/api/pending", getPending) router.HandleFunc("/api/verifications", getVerifications) - router.HandleFunc("/verifications", getVerification) router.HandleFunc("/api/probations", getProbations) router.HandleFunc("/api/passreq", reqPass) 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)) }