mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
auth changes
This commit is contained in:
@@ -3,8 +3,9 @@
|
||||
const express = require('express');
|
||||
const router = express.Router();
|
||||
const app_info = require('../../services/app_info');
|
||||
const auth = require('../../services/auth');
|
||||
|
||||
router.get('', async (req, res, next) => {
|
||||
router.get('', auth.checkApiAuth, async (req, res, next) => {
|
||||
res.send(app_info);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user