From a25028aa30bf0f3b89a9a7c99192e1a14267fc97 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 11 Sep 2023 14:52:07 +0200 Subject: Initial commit --- src/index.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/index.ts (limited to 'src/index.ts') diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..8c0a3ba --- /dev/null +++ b/src/index.ts @@ -0,0 +1,10 @@ +import { withHtmlLiveReload } from "bun-html-live-reload"; +import Siopao from "siopao"; + +const router = new Siopao(); + +router.get("/status", () => new Response("OK")); + +export default withHtmlLiveReload({ + fetch: router.fetch.bind(router), +}) -- cgit 1.4.1