Skip to content

Commit 6637203

Browse files
committed
4.1 solution express static middleware
1 parent 411b81c commit 6637203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const express = require("express");
22

33
const app = express();
44

5-
console.log("Hello World");
5+
app.use(express.static(__dirname + "/public"));
66

77
app.get("/", (req, res) => {
88
res.sendFile(__dirname + "/views/index.html");

0 commit comments

Comments
 (0)