mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-09 01:32:29 +08:00
14 lines
305 B
TypeScript
14 lines
305 B
TypeScript
![]() |
import { Router } from 'express';
|
||
|
import appInfo = require('../services/app_info');
|
||
|
import eu = require('./etapi_utils');
|
||
|
|
||
|
function register(router: Router) {
|
||
|
eu.route(router, 'get', '/etapi/app-info', (req, res, next) => {
|
||
|
res.status(200).json(appInfo);
|
||
|
});
|
||
|
}
|
||
|
|
||
|
export = {
|
||
|
register
|
||
|
};
|