fix: signup

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
This commit is contained in:
Henrique Dias 2018-12-28 19:37:45 +00:00
parent 4a601d93d3
commit 78962ad289

View File

@ -28,7 +28,7 @@ type Env struct {
} }
func (e *Env) getHandlers() (http.Handler, http.Handler) { func (e *Env) getHandlers() (http.Handler, http.Handler) {
box := rice.MustFindBox("../../frontend/dist") box := rice.MustFindBox("../frontend/dist")
handler := http.FileServer(box.HTTPBox()) handler := http.FileServer(box.HTTPBox())
baseURL := strings.TrimSuffix(e.Settings.BaseURL, "/") baseURL := strings.TrimSuffix(e.Settings.BaseURL, "/")
@ -38,6 +38,7 @@ func (e *Env) getHandlers() (http.Handler, http.Handler) {
data := map[string]interface{}{ data := map[string]interface{}{
"BaseURL": baseURL, "BaseURL": baseURL,
"StaticURL": staticURL, "StaticURL": staticURL,
"Signup": e.Settings.Signup,
} }
index := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { index := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {