trilium/routes/api/app_info.js

12 lines
298 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');
2017-11-21 13:25:53 +08:00
2017-12-23 22:57:20 +08:00
router.get('', auth.checkApiAuth, async (req, res, next) => {
2017-11-21 13:25:53 +08:00
res.send(app_info);
});
module.exports = router;