in src/main/kotlin/com/compiler/server/controllers/CompilerRestController.kt [87:97]
fun translateWasmCompose(
@RequestBody @Valid request: TranslateComposeWasmRequest,
): TranslationResultWithJsCode {
return kotlinProjectExecutor.convertToWasm(
Project(
args = request.args,
files = request.files.map { ProjectFile(name = it.name, text = it.text) },
confType = ProjectType.COMPOSE_WASM,
compilerArguments = listOf(request.firstPhaseCompilerArguments, request.secondPhaseCompilerArguments))
)
}