meteor - How do I split out parameters from a url in Iron Router? -


i have meteor web app. , have url's formatted this:

/box/bx_0/12345/bx_1/67890/ ...etc...

i want able extract pairs array in router file:

boxes['bx_0'] = 12345; boxes['bx_1'] = 67890; 

how can this?

i not sure if there pack or convention this, anyway setup generic route, grab url, split on "/" , parse it.

in other words, think doing manually should fast enough justify not looking solution...


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -