about summary refs log tree commit diff stats
path: root/src/index.ts
diff options
context:
space:
mode:
authorAlan Pearce2023-09-11 14:52:07 +0200
committerAlan Pearce2023-09-11 14:52:07 +0200
commita25028aa30bf0f3b89a9a7c99192e1a14267fc97 (patch)
tree94aa059e8f6d9145d5489c96802d82859db612dc /src/index.ts
downloadwebsite-a25028aa30bf0f3b89a9a7c99192e1a14267fc97.tar.lz
website-a25028aa30bf0f3b89a9a7c99192e1a14267fc97.tar.zst
website-a25028aa30bf0f3b89a9a7c99192e1a14267fc97.zip
Initial commit
Diffstat (limited to 'src/index.ts')
-rw-r--r--src/index.ts10
1 files changed, 10 insertions, 0 deletions
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),
+})