0👍
✅
You need to append query string params directly to url:
function get(id) {
return instance.get(`${path}/${id}?api_key=qwerasd`);
}
Source:stackexchange.com