modified: main_dc/yalarba/easySite/easySite/server/api/health.get.ts
set an ok status
This commit is contained in:
@@ -1,11 +1,4 @@
|
||||
// ~/server/api/health.get.ts
|
||||
export default defineEventHandler(async (event) => {
|
||||
console.log(event)
|
||||
|
||||
setResponseStatus(event, 200);
|
||||
|
||||
return {
|
||||
status: 'healthy',
|
||||
timestamp: new Date().toISOString()
|
||||
}
|
||||
})
|
||||
return 'OK';
|
||||
});
|
||||
Reference in New Issue
Block a user