Skip to content

Commit 32b2562

Browse files
committed
feat(api): add /zapier/webhook
1 parent db92f53 commit 32b2562

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/route/zapier_callback.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
const eventEmitter = require('../service/eventEmitter')
2+
3+
module.exports = async (ctx) => {
4+
console.log('ctx', ctx)
5+
console.log('ctx', ctx.request.body)
6+
}

src/router.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const linebotKoaMiddleware = require('linebot-koa-middleware')
55
const linebot = require('./service/linebot')
66

77
router.post('/github/webhook', require('./route/github_callback'))
8+
router.post('/zapier/webhook', require('./route/zapier_callback'))
89
router.post('/line/webhook', linebotKoaMiddleware(linebot))
910

1011
module.exports = router

0 commit comments

Comments
 (0)