fix: cannot ota upgrade when connect to remote node #424

This commit is contained in:
Jacky 2024-07-21 18:21:27 +08:00
parent f41b6bc07b
commit 7ef4fec896
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
8 changed files with 115 additions and 156 deletions

View file

@ -13,5 +13,8 @@ func InitPublicRouter(r *gin.RouterGroup) {
func InitPrivateRouter(r *gin.RouterGroup) {
r.GET("upgrade/release", GetRelease)
r.GET("upgrade/current", GetCurrentVersion)
}
func InitWebSocketRouter(r *gin.RouterGroup) {
r.GET("upgrade/perform", PerformCoreUpgrade)
}