f527b35244
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: rafaeleyng <rafaeleyng@gmail.com>
15 lines
333 B
TypeScript
15 lines
333 B
TypeScript
import {type Express} from 'express'
|
|
|
|
import {type AppContext} from '../context.js'
|
|
import {handler} from './util.js'
|
|
|
|
export default function (ctx: AppContext, app: Express) {
|
|
return app.get(
|
|
'/_health',
|
|
handler(async (_req, res) => {
|
|
const {version} = ctx.cfg.service
|
|
return res.send({version})
|
|
}),
|
|
)
|
|
}
|