Corrected controller's syntax for connecting to api and v1