moved libraries and images out of src folder

This commit is contained in:
zadam
2019-03-30 09:39:58 +01:00
parent 7bbf797caf
commit a5fc8d5329
349 changed files with 7 additions and 5 deletions

View File

@@ -43,6 +43,8 @@ app.use(bodyParser.json({limit: '500mb'}));
app.use(bodyParser.urlencoded({extended: false}));
app.use(cookieParser());
app.use(express.static(path.join(__dirname, 'public')));
app.use('/libraries', express.static(path.join(__dirname, '..', 'libraries')));
app.use('/images', express.static(path.join(__dirname, '..', 'images')));
const sessionParser = session({
secret: sessionSecret,
resave: false, // true forces the session to be saved back to the session store, even if the session was never modified during the request.
@@ -59,7 +61,7 @@ const sessionParser = session({
});
app.use(sessionParser);
app.use(favicon(__dirname + '/public/images/app-icons/win/icon.ico'));
app.use(favicon(__dirname + '/../images/app-icons/win/icon.ico'));
require('./routes/routes').register(app);