Skip to content

Instantly share code, notes, and snippets.

@Depado
Created March 27, 2018 13:24
Show Gist options
  • Save Depado/a9f6a81c88baf0c176f107badab410af to your computer and use it in GitHub Desktop.
Save Depado/a9f6a81c88baf0c176f107badab410af to your computer and use it in GitHub Desktop.
func webhook(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{})
}
func main() {
r := gin.Default()
r.POST("/webhook", webhook)
if err := r.Run("127.0.0.1:8001"); err != nil {
panic(err)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment