fix: signup
License: MIT Signed-off-by: Henrique Dias <hacdias@gmail.com>
This commit is contained in:
parent
4a601d93d3
commit
78962ad289
@ -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) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user