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