Made it so the router does a check on the paths with and without the file extension