Last active
March 27, 2018 13:25
-
-
Save depado/e51b6e1caba5fd733fb19dcb7ae57e6f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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