feat: add uixt action handler

This commit is contained in:
lilong.129
2024-11-07 20:41:41 +08:00
parent 90358196dd
commit db5768e3a1
3 changed files with 42 additions and 1 deletions
+3
View File
@@ -38,6 +38,9 @@ func NewServer(port int) error {
apiV1PlatformSerial.POST("/stub/login", handleDeviceContext(), loginHandler)
apiV1PlatformSerial.POST("/stub/logout", handleDeviceContext(), logoutHandler)
// run uixt actions
apiV1PlatformSerial.POST("/uixt/action", handleDeviceContext(), uixtActionHandler)
err := router.Run(fmt.Sprintf("127.0.0.1:%d", port))
if err != nil {
log.Err(err).Msg("failed to start http server")