feat: ASW-74 新增 adb shell websocket 接口

This commit is contained in:
shizhendong
2024-09-14 14:34:33 +08:00
parent 139efeec0b
commit 8d88639655
4 changed files with 170 additions and 0 deletions

View File

@@ -17,5 +17,6 @@ public class WebSocketConfig implements WebSocketConfigurer {
@Override
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
registry.addHandler(new VncProxyHandler(envApiYml.getVnc()), "/api/v1/env/novnc").setAllowedOrigins("*");
registry.addHandler(new AdbShellProxyHandler(envApiYml.getAdb()), "/api/v1/env/terminal").setAllowedOrigins("*");
}
}