Change mapper to have type Request -> Path