Created
December 11, 2017 10:28
-
-
Save iamkevingreen/4b6b194b0781733695b66ae27f014ba0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 { json } = require('micro') | |
const post = require('micro-post') | |
module.exports = post(async (req, res) => { | |
const parsed = await json(req) | |
console.log('parsed data', parsed) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment