Fix hardcoded api paths