Created the info.ts route
This commit is contained in:
parent
416c6b335e
commit
77603e56f8
11
src/routes/v1/info.ts
Normal file
11
src/routes/v1/info.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import { Router } from "express";
|
||||
|
||||
import packageJson from "../../../package.json";
|
||||
|
||||
const app: Router = Router();
|
||||
|
||||
app.get("/status", (req, res) => {
|
||||
res.json({ service: "LicenseAPI Backend", version: packageJson.version, status: "online" });
|
||||
});
|
||||
|
||||
export default app;
|
Loading…
x
Reference in New Issue
Block a user