parameters embedded in the route

30 views
Skip to first unread message

Reza Razavipour

unread,
Sep 25, 2014, 12:03:07 PM9/25/14
to nod...@googlegroups.com
I usually have routes like /path?id=...
I want to change to have something like 

/path/{authorname}/{publisher}/books
so for the above authorname must be valid,existing value. Or "all" can be substituted
for the above publisher must a be a valid,existing value. Or "all' can be substituted.

What does that route look like in express?

Ryan Schmidt

unread,
Sep 25, 2014, 3:30:36 PM9/25/14
to nod...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages