~huyngo/yue

261b5ce561bde8a041fa3220ffce233db44f3324 — Ngô Ngọc Đức Huy 11 months ago 87bb2f2
Add create request to timeline
1 files changed, 3 insertions(+), 1 deletions(-)

M timeline.go
M timeline.go => timeline.go +3 -1
@@ 39,7 39,9 @@ func HomeTimeline(w http.ResponseWriter, r *http.Request) {
		return
	}

	err = tmpl.Execute(w, nil)
	title := "Home"
	description := "Home timeline"
	err = tmpl.Execute(w, CreateRequestContext("", title, description, "system"))
	if err != nil {
		log.Println(err.Error())
		http.Error(w, "Internal Server Error", 500)