-Added a parameter to parse the path with a regex
-Created a new function to return the successful requests