import type { FastifyPluginAsync } from 'fastify'

export const versionRoutes: FastifyPluginAsync = async (app) => {
  app.get('/version', async (_request, reply) => {
    reply.send({ version: process.env.APP_VERSION ?? 'dev' })
  })
}
