Migrated the info.ts route to the PROJECT_VERSION env variable
This commit is contained in:
parent
445edc9853
commit
12dbec32cb
@ -1,11 +1,9 @@
|
||||
import { Request, Response, Router } from "express";
|
||||
|
||||
import packageJson from "../../../package.json";
|
||||
|
||||
const app: Router = Router();
|
||||
|
||||
app.get("/status", (req: Request, res: Response) => {
|
||||
res.json({ service: "LicenseAPI Backend", version: packageJson.version, status: "online" });
|
||||
res.json({ service: "LicenseAPI Backend", version: process.env.PROJECT_VERSION, status: "online" });
|
||||
});
|
||||
|
||||
export default app;
|
Loading…
x
Reference in New Issue
Block a user