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

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -