Created the info.ts route

This commit is contained in:
Mathias Wagner 2023-07-10 18:13:40 +02:00
parent 416c6b335e
commit 77603e56f8
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

11
src/routes/v1/info.ts Normal file
View 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;