summaryrefslogtreecommitdiff
path: root/lib/run.ts
diff options
context:
space:
mode:
authorElizabeth Hunt <me@liz.coffee>2025-08-17 23:50:24 -0700
committerElizabeth Hunt <me@liz.coffee>2025-08-17 23:53:38 -0700
commit1a4fc9535a89b58e8b67c8996ade0b833116af3a (patch)
treed16f3129d7bb69f204bba8422e909354195a0042 /lib/run.ts
parent157dc327e8fe63541b517cfbeeaf202a3e8553a5 (diff)
downloaduptime-1a4fc9535a89b58e8b67c8996ade0b833116af3a.tar.gz
uptime-1a4fc9535a89b58e8b67c8996ade0b833116af3a.zip
Move to pengueno.
Diffstat (limited to 'lib/run.ts')
-rw-r--r--lib/run.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/run.ts b/lib/run.ts
new file mode 100644
index 0000000..b16fd53
--- /dev/null
+++ b/lib/run.ts
@@ -0,0 +1,7 @@
+import { HonoProxy } from '@emprespresso/pengueno';
+import { UptimeServer } from '@emprespresso/uptime';
+
+const server = new UptimeServer();
+const hono = new HonoProxy(server);
+
+export const runServer = (port: number, hostname: string) => hono.serve(port, hostname);