Skip to content

Commit 4268b2c

Browse files
authored
fix: webhook endpoint
Resolves #54
1 parent 0b482bb commit 4268b2c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/webapp.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ module.exports = {
101101
});
102102

103103
// gitlab should hit this endpoint
104-
app.anon.post('/webhook', webhooks.receiveWebhook.bind(null, context.emitter));
104+
app.anon.get('/webhook', function (req, res){
105+
webhooks.receiveWebhook(context.emitter, req, res);
106+
});
105107
},
106108

107109
setupRepo: (account, config, project, done) => {

0 commit comments

Comments
 (0)