mtfosbot/route/google/index.js

19 lines
394 B
JavaScript
Raw Normal View History

2018-07-03 02:27:24 +00:00
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