Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Optional parameters not working as expected? #65
Hey guys, I have optional parameters set in a URL as follows:
and I have the controller matching it printing it out like this:
So that if you have a URL like /api/1/class/id/function/third/, it'll print out like:
however, if I only specify a single parameter (i.e. /api/1/class/id/), it will still print like this:
So it always sets third, regardless of whether or not it's been specified.