Added healthcheck route
This commit is contained in:
12
apps/backend/src/modules/health-check/health-check.routes.ts
Normal file
12
apps/backend/src/modules/health-check/health-check.routes.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { AppEnv } from "@/types/hono";
|
||||
import { Hono } from "hono";
|
||||
|
||||
export const healthCheckRoutes = new Hono<AppEnv>()
|
||||
|
||||
|
||||
healthCheckRoutes.get('/', (c) => {
|
||||
return c.json({
|
||||
status: 'healthy',
|
||||
timeStamp: new Date()
|
||||
}, 200)
|
||||
})
|
||||
Reference in New Issue
Block a user