first commit
This commit is contained in:
10
calcom/apps/web/pages/api/version.ts
Normal file
10
calcom/apps/web/pages/api/version.ts
Normal file
@@ -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<Response>): Promise<void> {
|
||||
return res.status(200).json({ version: pjson.version });
|
||||
}
|
||||
Reference in New Issue
Block a user