Update routing.mdx (#25881)

fix formatting
This commit is contained in:
Copple authored and GitHub committed 2024-05-08 17:59:44 +00:00
1 parent 8adf98ed96
commit f4d130c195
1 file changed
+3 -3
@@ -93,12 +93,12 @@ import type { Context } from 'https://deno.land/x/hono/mod.ts';
const app = new Hono();
app.post('/hello-world', async (c: Context) => {
const { name } = await c.req.json();
return new Response(`Hello ${name}!`)
const { name } = await c.req.json();
return new Response(`Hello ${name}!`)
});
app.get('/hello-world', (c: Context) => {
return new Response('Hello World!')
return new Response('Hello World!')
});
Deno.serve(app.fetch);