mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			355 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			355 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| "use strict";
 | |
| 
 | |
| const express = require('express');
 | |
| const router = express.Router();
 | |
| const app_info = require('../../services/app_info');
 | |
| const auth = require('../../services/auth');
 | |
| const wrap = require('express-promise-wrap').wrap;
 | |
| 
 | |
| router.get('', auth.checkApiAuth, wrap(async (req, res, next) => {
 | |
|     res.send(app_info);
 | |
| }));
 | |
| 
 | |
| module.exports = router; |