about summary refs log tree commit diff stats
path: root/src/index.ts
diff options
context:
space:
mode:
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),
+})