diff --git a/internal/server/articles.go b/internal/server/articles.go index 6430651..3243e45 100644 --- a/internal/server/articles.go +++ b/internal/server/articles.go @@ -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, diff --git a/server b/server index 503f5d1..371387f 100755 Binary files a/server and b/server differ