Fix the title
This commit is contained in:
@@ -33,7 +33,6 @@ func rootHandler(wr http.ResponseWriter, req *http.Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func articleHandler(wr http.ResponseWriter, req *http.Request) {
|
func articleHandler(wr http.ResponseWriter, req *http.Request) {
|
||||||
title := "Pocetna"
|
|
||||||
store, err := database.Connect()
|
store, err := database.Connect()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
http.Error(wr, err.Error(), http.StatusInternalServerError)
|
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)
|
http.Error(wr, err.Error(), http.StatusNotFound)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
title := article.Title
|
||||||
data := map[string]interface{}{
|
data := map[string]interface{}{
|
||||||
"title": title,
|
"title": title,
|
||||||
"article": article,
|
"article": article,
|
||||||
|
|||||||
Reference in New Issue
Block a user