Skip to content

Instantly share code, notes, and snippets.

@marcusramberg
Created August 14, 2022 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcusramberg/9188eeff29f1f2f4be869d38966ae766 to your computer and use it in GitHub Desktop.
Save marcusramberg/9188eeff29f1f2f4be869d38966ae766 to your computer and use it in GitHub Desktop.
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