Skip to content

Commit

Permalink
allows requesting html pages without typing extension
Browse files Browse the repository at this point in the history
  • Loading branch information
smohadjer committed Sep 18, 2023
1 parent 285425b commit 343ca06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const args = process.argv.slice(2);
const folder = args[0];
const PORT = args[1] || 3000;

app.use(express.static(folder));
app.use(express.static(folder, { extensions: ['html'] }));

/*
app.get('/', (req, res) => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "build",
"version": "2.0.3",
"version": "2.0.4",
"description": "Frontend build for HTML websites",
"type": "module",
"repository": {
Expand Down

0 comments on commit 343ca06

Please sign in to comment.