node.js - how to create nginx file for mlab database collection search -


i want task first extract details url like,if have url like,

http://example.com/country/city/name

then use [country,city,name] find in mlab database collection, "landmarks" collection,

and select "_id" of combination stored in "landmarks" collection, forward ,

http://api.example.com/landmarks/_id

with request, response header , logged in user in request header , response there on site example.com

how create db search file in nginx before forwarding next url ?


Comments

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -