mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-11 02:42:27 +08:00
14 lines
310 B
TypeScript
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
|
|
};
|