We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c679e2f commit fe021adCopy full SHA for fe021ad
stubs/make/health/controller.stub
@@ -9,9 +9,12 @@ import { healthChecks } from '#start/health'
9
import type { HttpContext } from '@adonisjs/core/http'
10
11
export default class {{ controllerName }} {
12
- async handle({ response }: HttpContext) {
13
- const report = await healthChecks.run()
+ async live({ response }: HttpContext) {
+ return response.ok()
14
+ }
15
16
+ async ready({ response }: HttpContext) {
17
+ const report = await healthChecks.run()
18
if (report.isHealthy) {
19
return response.ok(report)
20
}
0 commit comments