Sunday, 2 April 2017

How to access URL segment(s) in ExpressJS

So let's say we have the following url:

http://example.com/shops/map/search

I want to access the second segment (map) and check its value. How can I achieve this in Express? Thanks in advance!



via Codearts

No comments:

Post a Comment