Wednesday 10 May 2017

How to form urls for specific user in node js application

I have a node js application where it would require two fields userid and projectid and would query in the database with those it would perform some operations.For now Ive hardcoded for one particular record in my app the userid and projectid values so,that it would query and perform the task.

But I want my application such that I can pass userid and projectid in the url so that it can take those and perform operation.I mean I want to prevent hardcoding and form url that should work for any particular user.Currently my app runs on localhost:3000

Please let me know any ideas on how can we do this in node js application



via user7350714

No comments:

Post a Comment