mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04:00
Added nanoexpress
This commit is contained in:
parent
1e91efc16c
commit
3c66e8c5d6
5 changed files with 51 additions and 4 deletions
|
@ -18,6 +18,7 @@ const settings = require('../utils/Settings');
|
|||
const stats = require('../stats')
|
||||
import util from 'util';
|
||||
const webaccess = require('./express/webaccess');
|
||||
import nanoexpress from 'nanoexpress';
|
||||
|
||||
import SecretRotator from '../security/SecretRotator';
|
||||
|
||||
|
@ -100,7 +101,7 @@ exports.createServer = async () => {
|
|||
exports.restartServer = async () => {
|
||||
await closeServer();
|
||||
|
||||
const app = express(); // New syntax for express v3
|
||||
const app = nanoexpress(); // New syntax for express v3
|
||||
|
||||
if (settings.ssl) {
|
||||
console.log('SSL -- enabled');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue