mirror of
https://github.com/janishutz/libreevent.git
synced 2025-11-25 21:34:24 +00:00
Fully fix npm issues
This commit is contained in:
@@ -11,7 +11,6 @@ const express = require( 'express' );
|
||||
let app = express();
|
||||
const path = require( 'path' );
|
||||
const expressSession = require( 'express-session' );
|
||||
const cookieParser = require( 'cookie-parser' );
|
||||
const http = require( 'http' );
|
||||
const fs = require( 'fs' );
|
||||
const token = require( './backend/token.js' );
|
||||
@@ -84,8 +83,6 @@ module.exports.run = ( rootDir ) => {
|
||||
}
|
||||
} ) );
|
||||
|
||||
app.use( cookieParser() );
|
||||
|
||||
let file = path.join( __dirname + '/webapp/main/dist/index.html' );
|
||||
|
||||
if ( settings.setupDone ) {
|
||||
@@ -115,4 +112,4 @@ module.exports.run = ( rootDir ) => {
|
||||
const PORT = process.env.PORT || 8080;
|
||||
console.log( '[ Server ] listening on port ' + PORT );
|
||||
http.createServer( app ).listen( PORT );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user