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

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) {