Retrieving Path Info

We need to make sure that the paths we use for route matching contain only the path without any get parameters so let's create an accessor method on the request class which will do that for us.

We want to make sure that it converts paths like this /posts?name=Gary to just the plain path like this /posts

Complete and Continue  
Discussion

2 comments