5781601def
add health check endpoint
8 lines
198 B
TypeScript
8 lines
198 B
TypeScript
// ~/server/api/health.get.ts
|
|
export default defineEventHandler(async (event) => {
|
|
console.log(event)
|
|
return {
|
|
status: 'healthy',
|
|
timestamp: new Date().toISOString()
|
|
}
|
|
}) |