Endpoint to get path.