trilium/routes/api/app_info.js
2017-12-23 09:57:20 -05:00

12 lines
298 B
JavaScript

"use strict";
const express = require('express');
const router = express.Router();
const app_info = require('../../services/app_info');
const auth = require('../../services/auth');
router.get('', auth.checkApiAuth, async (req, res, next) => {
res.send(app_info);
});
module.exports = router;