Skip to content

Commit

Permalink
chore: minor changes to express static
Browse files Browse the repository at this point in the history
  • Loading branch information
sarthakpranesh committed Mar 24, 2024
1 parent d5108f6 commit 6285693
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,6 @@ app.put('/api/:tokenRead/:tokenWrite', async (request, response) => {
return response.status(201).json({ readToken: tokenRead, writeToken: tokenWrite });
});

app.use("/*", express.static(path.join(__dirname, './ui/dist')))
app.use('/*', express.static(path.join(__dirname, './ui/dist'), {}))

app.listen(serverPort, () => console.log(`Listening on http://127.0.0.1:${serverPort}`));
app.listen(Number(serverPort), '0.0.0.0', () => console.log(`Listening on http://127.0.0.1:${serverPort}`));
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"description": "",
"scripts": {
"dev": "nodemon index.ts",
"dev": "nodemon -e ts,js,html index.ts",
"build": "tsc",
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand Down

0 comments on commit 6285693

Please sign in to comment.