Parameter passing is not implemented
stevenroose opened this issue · 1 comments
stevenroose commented
Currently, when a route is matched by r"$\/bar\/\d+"
, it is not possible to pass that numerical parameter to the function that forms the response.
I cannot really believe that this is how it is meant to be, I hope that I'm looking over something.
In one of the tests, I see this
test_endpoint = test_router.resolve('fud/bap2');
expect(test_endpoint(),
equals(RestTestUtil.returnString()+" fud/bap\d+"));
But the fud/bap\d+
route only matches for every fud/bap1234
-like string, but the id is never passed to the endpoint function.
Without this, this library is completely useless and it seems to me that you didn't use it yourself ever before...
spacez320 commented
This should have been addressed with the 0.1.10-a release, feel free to re-open or create new issues if you see problems. Thanks!