fix: Pass empty data map to homepage render function
This commit is contained in:
parent
67ddf8d8e7
commit
1801c98866
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -104,7 +104,7 @@ func (h *Handler) HomepageHandler(wr http.ResponseWriter, req *http.Request) {
|
||||||
wr.Write([]byte("https://" + os.Getenv("SHORTEN_HOST") + "/" + code))
|
wr.Write([]byte("https://" + os.Getenv("SHORTEN_HOST") + "/" + code))
|
||||||
}
|
}
|
||||||
|
|
||||||
Render(wr, nil)
|
Render(wr, map[string]string{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (h *Handler) CreateHandler(wr http.ResponseWriter, req *http.Request) {
|
func (h *Handler) CreateHandler(wr http.ResponseWriter, req *http.Request) {
|
||||||
|
|
Loading…
Reference in a new issue