about summary refs log tree commit diff
path: root/bskyogcard/src/routes/health.ts
blob: 0cc69515ebb8180a07e9572106560e82ac26e48b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import {Express} from 'express'

import {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})
    }),
  )
}