user3655266 user3655266 - 1 year ago 84
HTTP Question

How to handle incoming http requests on loopback

I am using loopback and building a login page. The client side files have the login page


var username = $('#usr').val();
var password = $('#pwd').val();

console.log("Request was "+status);
console.log("Result : "+data.login_type);
console.log("UserId : "+data.user_id);

if(dat.login_type == 'success'){
// Redirect to other server



this is hosted on localhost:3000, when a http request is made to this server , how can i get the incoming request object?

Answer Source

Here you have description how to add a static web page and here how add a simple Express routing

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download