COMPILE(platform, version) {
    let url;

    switch (platform) {
      case TargetPlatforms.JAVA:
        url = `${this.server}/api/${version}/compiler/run`;
        break;
      case TargetPlatforms.CANVAS:
        url = `${this.server}/api/${version}/compiler/translate`;
        break;
      case TargetPlatforms.JS:
        url = `${this.server}/api/${version}/compiler/translate`;
        break;
      case TargetPlatforms.JS_IR:
        url = `${this.server}/api/${version}/compiler/translate?ir=true`;
        break;
      case TargetPlatforms.WASM:
        url = `${this.server}/api/${version}/compiler/translate?ir=true&compiler=wasm`;
        break;
      case TargetPlatforms.COMPOSE_WASM:
        url = `${this.composeServer}/api/compiler/translate?compiler=${TargetPlatforms.COMPOSE_WASM.id}`;
        break;
      case TargetPlatforms.JUNIT:
        url = `${this.server}/api/${version}/compiler/test`;
        break;
      case TargetPlatforms.SWIFT_EXPORT:
        url = `${this.server}/api/${version}/${TargetPlatforms.SWIFT_EXPORT.id}/compiler/translate?compiler=swift-export`;
        break;
      default:
        console.warn(`Unknown ${platform.id} , used by default JVM`);
        url = `${this.server}/api/${version}/compiler/run`;
        break;
    }

    return url;
  }
API Paths

@type {{COMPILE: string, COMPLETE: string, VERSIONS: string, JQUERY: string, KOTLIN_JS: string}}