trilium/routes/api/app_info.js

13 lines
355 B
JavaScript
Raw Normal View History

2017-11-21 13:25:53 +08:00
"use strict";
const express = require('express');
const router = express.Router();
const app_info = require('../../services/app_info');
2017-12-23 22:57:20 +08:00
const auth = require('../../services/auth');
const wrap = require('express-promise-wrap').wrap;
2017-11-21 13:25:53 +08:00
router.get('', auth.checkApiAuth, wrap(async (req, res, next) => {
2017-11-21 13:25:53 +08:00
res.send(app_info);
}));
2017-11-21 13:25:53 +08:00
module.exports = router;