Added MindflowAdmin page handler and updated mindflow.Post.
This commit is contained in:
parent
14e25fe088
commit
ee486aefdf
@ -50,11 +50,18 @@ func (h *Handlers) Stuff(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
func (h *Handlers) Mindflow(w http.ResponseWriter, r *http.Request) {
|
||||
posts := []mindflow.Post{
|
||||
{Category: "Kek", Date: time.Now(), Title: "LMAO", Body: "Testing!"},
|
||||
{Category: mindflow.Category{ID: 1, Name: "Update"}, Date: time.Now(), Title: "LMAO", Body: "Testing!"},
|
||||
}
|
||||
web.Mindflow("/ Mindflow", posts, r, w)
|
||||
}
|
||||
|
||||
func (h *Handlers) MindflowAdmin(w http.ResponseWriter, r *http.Request) {
|
||||
posts := []mindflow.Post{
|
||||
{Category: mindflow.Category{ID: 1, Name: "Update"}, Date: time.Now(), Title: "LMAO", Body: "Testing!"},
|
||||
}
|
||||
web.MindflowAdmin("/ Mindflow Administration", posts, r, w)
|
||||
}
|
||||
|
||||
func (h *Handlers) About(w http.ResponseWriter, r *http.Request) {
|
||||
var lst servicestat.ServiceList = make(servicestat.ServiceList)
|
||||
reimu, err := servicestat.GatherStatus("http://reimu.arav.home.arpa:14882/processes")
|
||||
@ -135,7 +142,7 @@ func (h *Handlers) GuestbookAdmin(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
func (h *Handlers) RSS(w http.ResponseWriter, r *http.Request) {
|
||||
posts := []mindflow.Post{
|
||||
{Category: "Kek", Date: time.Now(), Title: "LMAO", Body: "Testing!"},
|
||||
{Category: mindflow.Category{ID: 1, Name: "Update"}, Date: time.Now(), Title: "LMAO", Body: "Testing!"},
|
||||
}
|
||||
web.RSS(r.URL.Scheme+"://"+r.Host, "Arav", posts, r, w)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user