Last active
May 9, 2021 07:16
Revisions
-
Piyush Garg revised this gist
May 9, 2021 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,6 +5,7 @@ const app = express(); const PORT = 8000; app.use(express.static('./public')); app.use(express.json()); app.listen(PORT, () => console.log(`Express server started at PORT:${PORT}`)); -
Piyush Garg revised this gist
May 9, 2021 . 1 changed file with 0 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,9 +6,5 @@ const PORT = 8000; app.use(express.static('./public')); app.listen(PORT, () => console.log(`Express server started at PORT:${PORT}`)); -
Piyush Garg revised this gist
May 9, 2021 . 1 changed file with 1 addition and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,9 +4,7 @@ const app = express(); const PORT = 8000; app.use(express.static('./public')); app.get('/', (request, response) => { response.send('Hello from the server'); -
Piyush Garg created this gist
May 9, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ const express = require('express'); const app = express(); const PORT = 8000; ```dif + app.use(express.static('./public')); ``` app.get('/', (request, response) => { response.send('Hello from the server'); }); app.listen(PORT, () => console.log(`Express server started at PORT:${PORT}`));