Skip to content

Commit 3ea31a5

Browse files
author
Dovydas Ceilutka
committed
Handle serving static files
1 parent 907082d commit 3ea31a5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ const path = require('path');
44
const server = express();
55

66
const exercise = '05 - Flex Panel Gallery';
7+
8+
server.use(express.static(exercise));
9+
710
server.get('/', (req, res) => {
811
res.sendFile(path.resolve(__dirname, exercise, 'index.html'));
912
});

0 commit comments

Comments
 (0)