Reputation: 667
I'm trying to create a loopback project, in which the client application will load in localhost:3000.
So I defined in server/server.js:
var path = require('path');
app.use(loopback.static(path.resolve(__dirname, '../client')));
Where client is the directory of the frontend files I would like to be presented in localhost:3000. However, when entering localhost:3000, I still see the message
'{"started":"2014-11-17T12:38:58.258Z","uptime":586.385}'
instead of index.html.
How can I redirect the entry point from that, to client/index.html?
Thank you
Upvotes: 0
Views: 759