|
|
@@ -85,3 +85,23 @@ func (i *WebClient) SharedPeer(c *gin.Context) {
|
|
85
|
85
|
"peer": pp,
|
|
86
|
86
|
})
|
|
87
|
87
|
}
|
|
|
88
|
+
|
|
|
89
|
+// ServerConfigV2 服务配置
|
|
|
90
|
+// @Tags WEBCLIENT_V2
|
|
|
91
|
+// @Summary 服务配置
|
|
|
92
|
+// @Description 服务配置,给webclient提供api-server
|
|
|
93
|
+// @Accept json
|
|
|
94
|
+// @Produce json
|
|
|
95
|
+// @Success 200 {object} response.Response
|
|
|
96
|
+// @Failure 500 {object} response.Response
|
|
|
97
|
+// @Router /server-config [get]
|
|
|
98
|
+// @Security token
|
|
|
99
|
+func (i *WebClient) ServerConfigV2(c *gin.Context) {
|
|
|
100
|
+ response.Success(
|
|
|
101
|
+ c,
|
|
|
102
|
+ gin.H{
|
|
|
103
|
+ "id_server": global.Config.Rustdesk.IdServer,
|
|
|
104
|
+ "key": global.Config.Rustdesk.Key,
|
|
|
105
|
+ },
|
|
|
106
|
+ )
|
|
|
107
|
+}
|