mirror of
https://github.com/runcitadel/apps.git
synced 2024-09-23 01:30:22 +00:00
WIP
This commit is contained in:
parent
fee5a0dd0d
commit
2c74e7f01d
10
server.ts
Normal file
10
server.ts
Normal file
|
@ -0,0 +1,10 @@
|
|||
import { serve } from "https://deno.land/std@0.162.0/http/server.ts";
|
||||
import { router } from "https://crux.land/router@0.0.12";
|
||||
|
||||
const handler = router({
|
||||
"GET@/": (_req) => new Response("Hello get!", { status: 200 }),
|
||||
"POST@/": (_req) => new Response("Hello post!", { status: 200 }),
|
||||
});
|
||||
|
||||
console.log("Listening on http://localhost:8080");
|
||||
await serve(handler);
|
Loading…
Reference in New Issue
Block a user