make kestrel a tak server, so that it can send and receive pois as cots data
Some checks failed
ci/woodpecker/pr/pr Pipeline failed
Some checks failed
ci/woodpecker/pr/pr Pipeline failed
This commit is contained in:
@@ -1 +1,9 @@
|
||||
export default defineEventHandler(() => ({ status: 'ready' }))
|
||||
import { healthCheck } from '../../utils/db.js'
|
||||
|
||||
export default defineEventHandler(async () => {
|
||||
const health = await healthCheck()
|
||||
if (!health.healthy) {
|
||||
throw createError({ statusCode: 503, message: 'Database not ready' })
|
||||
}
|
||||
return { status: 'ready' }
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user