diff --git a/app/src/app.js b/app/src/app.js index bfb41b5..1fb34c8 100644 --- a/app/src/app.js +++ b/app/src/app.js @@ -5,6 +5,9 @@ const handleSearch = require('./search'); const app = express(); const port = 3000; +// specifying the folder with the static content - html+css +app.use(express.static(__dirname + '/static')); + app.get('/', (req, res) => { res.sendFile(path.join(__dirname, '/static/index.html')); }); diff --git a/app/src/static/index.html b/app/src/static/index.html index 3d9b2df..2c5b0d6 100644 --- a/app/src/static/index.html +++ b/app/src/static/index.html @@ -7,13 +7,14 @@