Skip to content

Commit 76e5777

Browse files
author
Brandon Smith
committedJan 6, 2024
Add health check endpoint
1 parent 882adc7 commit 76e5777

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ serve(async (req) => {
6161
}
6262
}
6363

64+
if (url.pathname === '/health_check') {
65+
return new Response('OK')
66+
}
67+
6468
// handle 404s
6569
{
6670
const { content, headers } = fileMap.get('/404') as { content: Uint8Array, headers: HeadersInit }

0 commit comments

Comments
 (0)
Please sign in to comment.