mirror of
https://github.com/gnmyt/LicenseAPI.git
synced 2026-01-10 18:21:47 +00:00
Create info.ts route
This commit is contained in:
9
src/routes/v1/info.ts
Normal file
9
src/routes/v1/info.ts
Normal file
@ -0,0 +1,9 @@
|
||||
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" });
|
||||
});
|
||||
|
||||
export default app;
|
||||
Reference in New Issue
Block a user