From fd519cd93d46bdcb16289b19ca6368ecd07641a7 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Mon, 22 Jul 2024 13:05:07 +0200 Subject: [PATCH] Show signupEnabled status in info.ts --- src/routes/v1/info.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/v1/info.ts b/src/routes/v1/info.ts index 60bf6c2..d61673d 100644 --- a/src/routes/v1/info.ts +++ b/src/routes/v1/info.ts @@ -3,7 +3,8 @@ import { Request, Response, Router } from "express"; const app: Router = Router(); app.get("/status", (req: Request, res: Response) => { - res.json({ service: "LicenseAPI Backend", version: process.env.PROJECT_VERSION, status: "online" }); + res.json({ service: "LicenseAPI Backend", version: process.env.PROJECT_VERSION, status: "online", + signupEnabled: process.env.DISABLE_SIGNUPS !== "true" }); }); export default app; \ No newline at end of file