Skip to content
git-on-cloudflare
Git hosting on Cloudflare
Sign in
rachel
/
bland
main
Loading...
Browse
Commits
Admin
File
Blob: src/worker/routes/health.ts
..
/
main
/
src
/
worker
/
routes
/
health.ts
typescript
10 lines
Copy
View
Raw
Download
Copy raw
View raw
Download
1
import
{
Hono
}
from
"hono"
;
2
3
const
health =
new
Hono
<{
Bindings
:
Env
}>();
4
5
health.
get
(
"/health"
,
(
c
) =>
{
6
return
c.
json
({
status
:
"ok"
,
timestamp
:
new
Date
().
toISOString
() });
7
});
8
9
export
{ health };