go method can now take an object containing the path that the router should execute