import { fileSystemRouter } from "keiro/node";import http from "node:http"; const port = 5000;const origin = `http://localhost:${port}`; const server = http.createServer(fileSystemRouter({ origin }));server.listen(port, () => console.log(`Listening on ${origin}`));
import { fileSystemRouter } from "keiro/web"; Deno.serve({ handler: fileSystemRouter(), onListen(addr) { console.log(`Listening on http://${addr.hostname}:${addr.port}`); },});
import { fileSystemRouter } from "keiro/web"; const server = Bun.serve({ fetch: fileSystemRouter(),}); console.log(`Listening on http://${server.hostname}:${server.port}`);
import { defineHandler } from "keiro"; export default defineHandler(() => { return Response.json({ hello: "world" })})