diff --git a/apps/web/pages/api/version.ts b/apps/web/pages/api/version.ts new file mode 100644 index 0000000000..9b05eef8ab --- /dev/null +++ b/apps/web/pages/api/version.ts @@ -0,0 +1,10 @@ +import type { NextApiRequest, NextApiResponse } from "next"; +import * as pjson from "package.json"; + +type Response = { + version: string; +}; + +export default async function handler(req: NextApiRequest, res: NextApiResponse): Promise { + return res.status(200).json({ version: pjson.version }); +}