Created
August 14, 2022 08:38
-
-
Save marcusramberg/9188eeff29f1f2f4be869d38966ae766 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
import mojo from '@mojojs/core'; | |
const app = mojo(); | |
app.post('/', async ctx => { | |
ctx.log.debug(await ctx.req.text()); | |
await ctx.render({json: await ctx.req.json()}); | |
}); | |
app.start(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment