Fix the title

This commit is contained in:
Senad Uka
2022-02-15 05:43:52 +01:00
parent 81da0a29a6
commit 08d81be857
2 changed files with 1 additions and 1 deletions

View File

@@ -33,7 +33,6 @@ func rootHandler(wr http.ResponseWriter, req *http.Request) {
}
func articleHandler(wr http.ResponseWriter, req *http.Request) {
title := "Pocetna"
store, err := database.Connect()
if err != nil {
http.Error(wr, err.Error(), http.StatusInternalServerError)
@@ -51,6 +50,7 @@ func articleHandler(wr http.ResponseWriter, req *http.Request) {
http.Error(wr, err.Error(), http.StatusNotFound)
}
title := article.Title
data := map[string]interface{}{
"title": title,
"article": article,

BIN
server

Binary file not shown.