Skip to content

Instantly share code, notes, and snippets.

@Depado
Last active March 27, 2018 13:25
Show Gist options
  • Save Depado/e51b6e1caba5fd733fb19dcb7ae57e6f to your computer and use it in GitHub Desktop.
Save Depado/e51b6e1caba5fd733fb19dcb7ae57e6f to your computer and use it in GitHub Desktop.
func webhook(c *gin.Context) {
var err error
var dfr *df.Request
if err = c.BindJSON(&dfr); err != nil {
c.AbortWithStatus(http.StatusBadRequest)
return
}
spew.Dump(dfr)
c.JSON(http.StatusOK, gin.H{})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment