Skip to content

Commit

Permalink
Merge pull request #47 from diorgesl/patch-1
Browse files Browse the repository at this point in the history
added express.static to use static files
  • Loading branch information
woodjme authored Sep 12, 2022
2 parents 9e7dd29 + d3767f5 commit 66ca3ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const server = express()
const bodyParser = require('body-parser')

// middleware
server.use(express.static("public"));
server.use(bodyParser.urlencoded({ extended: true }))
server.use(require('express-session')({
secret: process.env.SECRET || 'secret',
Expand Down

0 comments on commit 66ca3ff

Please sign in to comment.