mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
added document_secret as basis for API authentication
This commit is contained in:
18
routes/api/login.js
Normal file
18
routes/api/login.js
Normal file
@@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
|
||||
const express = require('express');
|
||||
const router = express.Router();
|
||||
const auth = require('../../services/auth');
|
||||
const sql = require('../../services/sql');
|
||||
const migration = require('../../services/migration');
|
||||
|
||||
router.post('', async (req, res, next) => {
|
||||
|
||||
|
||||
res.send({
|
||||
'db_version': parseInt(await sql.getOption('db_version')),
|
||||
'app_db_version': migration.APP_DB_VERSION
|
||||
});
|
||||
});
|
||||
|
||||
module.exports = router;
|
||||
Reference in New Issue
Block a user