#1 Fixing route and router to allow for multiple variables in path.

Open
antonienko wants to merge 0 commits from deleted into master

On the isokit/router, it was not possible to have multiple variables in a path.

With this patch it is possible, but the format of the key to retrieve the variables change. Instead of having to type the whole path as the key, is just the variable name, similar to what gorilla/mux does.

I'm afraid this breaks backwards compatibility, but I'm confident this was the intended way for it to work.

I have added some unit tests to the route file, but didn't have the time to create a test for the router modification, since it's a way more complex test case.

On the isokit/router, it was not possible to have multiple variables in a path. With this patch it is possible, but the format of the key to retrieve the variables change. Instead of having to type the whole path as the key, is just the variable name, similar to what gorilla/mux does. I'm afraid this breaks backwards compatibility, but I'm confident this was the intended way for it to work. I have added some unit tests to the route file, but didn't have the time to create a test for the router modification, since it's a way more complex test case.
Data of this pull request has been broken due to deletion of fork information.
Sign in to join this conversation.
No Label
No Milestone
No assignee
1 Participants
Loading...
Cancel
Save
There is no content yet.