mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
refactored backend to use new naming convention for modules
This commit is contained in:
8
src/www
8
src/www
@@ -15,8 +15,8 @@ const http = require('http');
|
||||
const https = require('https');
|
||||
const config = require('./services/config');
|
||||
const log = require('./services/log');
|
||||
const app_info = require('./services/app_info');
|
||||
const messaging = require('./services/messaging');
|
||||
const appInfo = require('./services/app_info');
|
||||
const messagingService = require('./services/messaging');
|
||||
const utils = require('./services/utils');
|
||||
const sql = require('./services/sql');
|
||||
|
||||
@@ -44,7 +44,7 @@ else {
|
||||
log.info("App HTTP server starting up at port " + port);
|
||||
}
|
||||
|
||||
log.info(JSON.stringify(app_info, null, 2));
|
||||
log.info(JSON.stringify(appInfo, null, 2));
|
||||
|
||||
/**
|
||||
* Listen on provided port, on all network interfaces.
|
||||
@@ -55,7 +55,7 @@ httpServer.listen(port);
|
||||
httpServer.on('error', onError);
|
||||
httpServer.on('listening', onListening);
|
||||
|
||||
sql.dbReady.then(() => messaging.init(httpServer, sessionParser));
|
||||
sql.dbReady.then(() => messagingService.init(httpServer, sessionParser));
|
||||
|
||||
if (utils.isElectron()) {
|
||||
const electronRouting = require('./routes/electron');
|
||||
|
||||
Reference in New Issue
Block a user