mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 11:02:28 +08:00
14 lines
299 B
TypeScript
14 lines
299 B
TypeScript
import { 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 = {
|
|
register
|
|
};
|