youtube webhook not fin

This commit is contained in:
root committed 2018-07-03 10:27:24 +08:00
1 parent d7c64b3c65
commit 88e412e33a
3 files changed
+48 -1

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
const Router = require('koa-router')
const r = new Router()
// const koaBody = require('koa-body')
const {
getRaw
} = require('../../libs/middleware')
const {
textMessage
} = require('../../libs/line-message')
r.get('/youtube/webhook', async (c, n) => {
})
r.post('/youtube/webhook', getRaw, async (c, n) => {
console.log(JSON.stringify(c.request.body, null, 2))
})
module.exports = r