mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 09:55:06 +03: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);
|
||||
|
||||
Reference in new issue
Block a user