mirror of
https://github.com/gnmyt/LicenseAPI.git
synced 2026-01-11 18:51:47 +00:00
Show signupEnabled status in info.ts
This commit is contained in:
@ -3,7 +3,8 @@ import { Request, Response, Router } from "express";
|
|||||||
const app: Router = Router();
|
const app: Router = Router();
|
||||||
|
|
||||||
app.get("/status", (req: Request, res: Response) => {
|
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;
|
export default app;
|
||||||
Reference in New Issue
Block a user