Update api path

api path inside main.js updated to work with versioning