Skip to content

Commit

Permalink
unspecified
Browse files Browse the repository at this point in the history
  • Loading branch information
helagro committed Mar 17, 2024
1 parent 555b45c commit 4ef94e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ app.use((req, res, next) => {

app.use(rootPath, express.static(folderPath, { extensions: ["html"] }))

app.get("/", (req, res) => {
res.redirect(rootPath + "/en")
})

app.listen(port, () => {
console.log(`Server is running on port ${port}, hosting ${folderPath}`)
})

0 comments on commit 4ef94e8

Please sign in to comment.