Fully fix npm issues

This commit is contained in:
2025-04-19 11:38:53 +02:00
parent 50978d248c
commit 02c297a310
4 changed files with 4444 additions and 3343 deletions

View File

@@ -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 );
}
}