fix routes

This commit is contained in:
srgooglo 2022-05-31 21:16:42 +02:00
parent b8c1680418
commit ee120f0cd0

View File

@ -7,9 +7,10 @@ let portListen = portFromArgs ? portFromArgs : 9000
app.use(express.static(path.join(__dirname, "dist")))
app.get("/", function (req, res) {
app.get("*", function (req, res) {
res.sendFile(path.join(__dirname, "dist", "index.html"))
})
app.listen(portListen)
console.log(`🌐 Listening app in port [${portListen}]`)