Parse endpoint in parseParams instead