Created
August 10, 2018 14:50
-
-
Save skyzh/d0ed6b8408526967788c1f8ff4b94ed4 to your computer and use it in GitHub Desktop.
create a server which returns {} on every page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Koa = require('koa') | |
const app = new Koa() | |
app.use(ctx => { | |
ctx.response.body = {} | |
}) | |
app.listen(8000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment