//GetMessage shows all messages in the database.
GetMessage shows all messages in the database.
// GetMessage shows all messages in the database .
func GetMessage(c *macaron.Context) {
	key := c.Query("key")
	if key != "YourKey" {
		c.Write([]byte("404 not found."))
		return
	}
	msgs, err := models.GetMessage()
	if err != nil {
		c.Write([]byte(err.Error()))
		return
	}
	j, _ := json.Marshal(msgs)
	c.Write(j)
}
func GetMessage ( c * macaron . Context ) { key := c . Query ( " " ) if key != " " { c . Write ( [ ] byte ( " " ) ) return } msgs , err := models . GetMessage ( ) if err != nil { c . Write ( [ ] byte ( err . Error ( ) ) ) return } j , _ := json . Marshal ( msgs ) c . Write ( j ) }
GetMessage shows all messages in the database.
GetMessage shows all messages in the database .