//PostMessage creates new messages.
PostMessage creates new messages.
// PostMessage creates new messages .
func PostMessage(c *macaron.Context) {
	text := c.Query("message")
	if text == "" {
		c.Write([]byte("Message is empty!"))
		return
	}
	name := c.Query("name")
	ip := c.RemoteAddr()
	models.InsertMessage(text, name, ip)
	c.Write([]byte("Submitted successfully. Thank you!"))
	return
}
func PostMessage ( c * macaron . Context ) { text := c . Query ( " " ) if text == " " { c . Write ( [ ] byte ( " " ) ) return } name := c . Query ( " " ) ip := c . RemoteAddr ( ) models . InsertMessage ( text , name , ip ) c . Write ( [ ] byte ( " " ) ) return }
PostMessage creates new messages.
PostMessage creates new messages .