@@ -97,9 +97,6 @@ func setupRouter() *gin.Engine {
97
97
// We use this to determine if the device is setup
98
98
r .GET ("/device/status" , handleDeviceStatus )
99
99
100
- // We use this to provide the UI with the device configuration
101
- r .GET ("/device/ui-config.js" , handleDeviceUIConfig )
102
-
103
100
// We use this to setup the device in the welcome page
104
101
r .POST ("/device/setup" , handleSetup )
105
102
@@ -694,21 +691,6 @@ func handleCloudState(c *gin.Context) {
694
691
c .JSON (http .StatusOK , response )
695
692
}
696
693
697
- func handleDeviceUIConfig (c * gin.Context ) {
698
- config , _ := json .Marshal (gin.H {
699
- "CLOUD_API" : config .CloudURL ,
700
- "DEVICE_VERSION" : builtAppVersion ,
701
- })
702
- if config == nil {
703
- c .JSON (http .StatusInternalServerError , gin.H {"error" : "Failed to marshal config" })
704
- return
705
- }
706
-
707
- response := fmt .Sprintf ("window.JETKVM_CONFIG = %s;" , config )
708
-
709
- c .Data (http .StatusOK , "text/javascript; charset=utf-8" , []byte (response ))
710
- }
711
-
712
694
func handleSetup (c * gin.Context ) {
713
695
// Check if the device is already set up
714
696
if config .LocalAuthMode != "" || config .HashedPassword != "" {
0 commit comments