Fix api endpoint in connection

Unintended behaviour that probably went unnoticed while testing with the server booted up on `localhost:4000/store/api`.