Skip to content
Snippets Groups Projects
Commit ea69f44a authored by esikkala's avatar esikkala
Browse files

Serve the top public directory

parent 6632f685
No related branches found
No related tags found
No related merge requests found
...@@ -17,11 +17,7 @@ app.use(function(req, res, next) { ...@@ -17,11 +17,7 @@ app.use(function(req, res, next) {
next(); next();
}); });
app.use(express.static(__dirname + '/public')); app.use(express.static(__dirname + './../public/'));
app.get('/', (req, res) => {
res.sendFile(__dirname + '/public/index.html');
});
app.get('/suggest', (req, res) => { app.get('/suggest', (req, res) => {
// https://softwareengineering.stackexchange.com/questions/233164/how-do-searches-fit-into-a-restful-interface // https://softwareengineering.stackexchange.com/questions/233164/how-do-searches-fit-into-a-restful-interface
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment