#12, add/edit hook

This commit is contained in:
Unknwon 2014-11-13 12:57:00 -05:00
parent 9e22840483
commit 9dc3c93a6a
7 changed files with 192 additions and 24 deletions

View file

@ -334,6 +334,7 @@ func WebHooksNewPost(ctx *middleware.Context, form auth.NewWebhookForm) {
return
}
// FIXME: code too old here, sync with APIs
ct := models.JSON
if form.ContentType == "2" {
ct = models.FORM