mirror of
https://github.com/zadam/trilium.git
synced 2025-10-31 18:36:30 +01:00
auth changes
This commit is contained in:
@@ -3,8 +3,9 @@
|
||||
const express = require('express');
|
||||
const router = express.Router();
|
||||
const sql = require('../../services/sql');
|
||||
const auth = require('../../services/auth');
|
||||
|
||||
router.get('', async (req, res, next) => {
|
||||
router.get('', auth.checkApiAuth, async (req, res, next) => {
|
||||
await deleteOld();
|
||||
|
||||
const result = await sql.getResults("SELECT * FROM event_log ORDER BY date_added DESC");
|
||||
|
||||
Reference in New Issue
Block a user