harness-drone/web/slack.go
2016-04-12 10:12:14 -07:00

9 lines
215 B
Go

package web
import "github.com/gin-gonic/gin"
// Slack is handler function that handles Slack slash commands.
func Slack(c *gin.Context) {
text := c.PostForm("text")
c.String(200, "received message %s", text)
}