Skip to content

Commit

Permalink
adding middleware to serve static content
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad-Alzamer committed Mar 5, 2021
1 parent 138a66a commit 128ce8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion myApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var app = express();
console.log("Hello World");



app.use("/public",express.static(__dirname+"/public"));


app.get("/",(req,res) => {
Expand Down

0 comments on commit 128ce8b

Please sign in to comment.