cleanup and #ffffea
This commit is contained in:
parent
7fd9a01a1a
commit
0eebffc039
@ -332,8 +332,6 @@ func index(w http.ResponseWriter, r *http.Request) {
|
||||
template.New("").Funcs(templateFuncs).ParseFS(templates, "templates/main.html"),
|
||||
)
|
||||
|
||||
//tmpl = tmpl.Funcs(templateFuncs)
|
||||
|
||||
err = tmpl.ExecuteTemplate(w, "main.html", stuff)
|
||||
if err != nil {
|
||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||
|
7
main.go
7
main.go
@ -158,12 +158,17 @@ func main() {
|
||||
log.Println(err)
|
||||
continue
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
|
||||
body, err := io.ReadAll(resp.Body)
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
continue
|
||||
}
|
||||
err = resp.Body.Close()
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
continue
|
||||
}
|
||||
contentType := resp.Header.Get("Content-Type")
|
||||
|
||||
err = app.queries.AddIcon(app.ctx, data.AddIconParams{
|
||||
|
@ -1,6 +1,9 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<style>
|
||||
html {
|
||||
background-color: #ffffea;
|
||||
}
|
||||
.icon {
|
||||
cursor: pointer;
|
||||
padding: 10px;
|
||||
|
Loading…
Reference in New Issue
Block a user