ytdl-backend/route/api/index.js
2019-08-13 07:39:49 +08:00

11 lines
206 B
JavaScript

const Router = require('@koa/router')
const r = new Router()
module.exports = r
r.get('/health', async c => {
c.status = 200
c.body = 'ok'
})
r.use('/youtube', require('./youtube/index.js').routes())