diff options
author | Alan Pearce | 2023-09-11 14:52:07 +0200 |
---|---|---|
committer | Alan Pearce | 2023-09-11 14:52:07 +0200 |
commit | a25028aa30bf0f3b89a9a7c99192e1a14267fc97 (patch) | |
tree | 94aa059e8f6d9145d5489c96802d82859db612dc /src | |
download | homestead-a25028aa30bf0f3b89a9a7c99192e1a14267fc97.tar.lz homestead-a25028aa30bf0f3b89a9a7c99192e1a14267fc97.tar.zst homestead-a25028aa30bf0f3b89a9a7c99192e1a14267fc97.zip |
Initial commit
Diffstat (limited to 'src')
-rw-r--r-- | src/index.ts | 10 |
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), +}) |