From 78962ad289cddc8bd51526812774db9440edfe00 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Fri, 28 Dec 2018 19:37:45 +0000 Subject: [PATCH] fix: signup License: MIT Signed-off-by: Henrique Dias --- http/http.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/http/http.go b/http/http.go index d1ade714..62d00123 100644 --- a/http/http.go +++ b/http/http.go @@ -28,7 +28,7 @@ type Env struct { } func (e *Env) getHandlers() (http.Handler, http.Handler) { - box := rice.MustFindBox("../../frontend/dist") + box := rice.MustFindBox("../frontend/dist") handler := http.FileServer(box.HTTPBox()) baseURL := strings.TrimSuffix(e.Settings.BaseURL, "/") @@ -38,6 +38,7 @@ func (e *Env) getHandlers() (http.Handler, http.Handler) { data := map[string]interface{}{ "BaseURL": baseURL, "StaticURL": staticURL, + "Signup": e.Settings.Signup, } index := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {