From 7e17ab5751e350b9851eea81619d53c2ef23b2d5 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Mon, 16 Feb 2026 13:26:21 -0800 Subject: [PATCH] ok --- src/index.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 7343054..21084f8 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -25,6 +25,7 @@ export type HypeProps = { prettyHTML?: boolean layout?: boolean logging?: boolean + ok?: boolean } type InternalProps = HypeProps & { _isRouter?: boolean } @@ -141,6 +142,10 @@ export class Hype< if (this.routesRegistered) return this.routesRegistered = true + // healthcheck + if (this.props.ok) + this.get('/ok', c => c.text('ok')) + // serve frontend js this.use('*', async (c, next) => { await fnStorage.run({ fns: new Map(), counter: 0 }, async () => {