Skip to content
This repository has been archived by the owner on Jan 14, 2020. It is now read-only.

Use with Koa/Http module #5

Closed
egoist opened this issue Mar 20, 2017 · 1 comment
Closed

Use with Koa/Http module #5

egoist opened this issue Mar 20, 2017 · 1 comment

Comments

@egoist
Copy link
Collaborator

egoist commented Mar 20, 2017

const unvue = require('unvue')
const Koa = require('koa')
const Router = require('koa-router')

const handle = unvue.getRequestHandler()
const app = new Koa()
const router = new Router()

router.get('*', ctx => {
  handle(ctx.req, ctx.res)
})
@egoist
Copy link
Collaborator Author

egoist commented Mar 21, 2017

@egoist egoist closed this as completed Mar 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant