Notes/apps/server/src/etapi/app_info.ts
2025-04-22 17:16:41 +03:00

14 lines
310 B
TypeScript

import type { Router } from "express";
import appInfo from "../services/app_info.js";
import eu from "./etapi_utils.js";
function register(router: Router) {
eu.route(router, "get", "/etapi/app-info", (req, res, next) => {
res.status(200).json(appInfo);
});
}
export default {
register
};