fix: Pass empty data map to homepage render function

This commit is contained in:
ptrcnull 2022-05-08 01:34:42 +02:00
parent 67ddf8d8e7
commit 1801c98866
Signed by: ptrcnull
GPG Key ID: 411F7B30801DD9CA
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ func (h *Handler) HomepageHandler(wr http.ResponseWriter, req *http.Request) {
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) {