mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
fix routes
This commit is contained in:
parent
b8c1680418
commit
ee120f0cd0
@ -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}]`)
|
Loading…
x
Reference in New Issue
Block a user