From 033d01e1cf54f89ec84e8c0239f61a494fa83060 Mon Sep 17 00:00:00 2001 From: Florent Chehab Date: Mon, 20 Apr 2020 10:34:41 +0200 Subject: [PATCH] fixup! refacto(scipts): reorganized & support dev server --- scripts/server-backend.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/server-backend.js b/scripts/server-backend.js index 0bd87b0..c0a33b8 100644 --- a/scripts/server-backend.js +++ b/scripts/server-backend.js @@ -20,7 +20,8 @@ function startBackendServer(port) { var s_whiteboard = require("./s_whiteboard.js"); var app = express(); - app.use(express.static(path.join(__dirname, '..', 'public'))); + app.use(express.static(path.join(__dirname, '..', 'dist'))); + app.use("/uploads", express.static(path.join(__dirname, '..', 'public', 'uploads'))); var server = require('http').Server(app); server.listen(port); var io = require('socket.io')(server, {path: "/ws-api", });