You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
444 B
Go
21 lines
444 B
Go
package system
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func InitPublicRouter(r *gin.RouterGroup) {
|
|
r.GET("install", InstallLockCheck)
|
|
r.POST("install", InstallNginxUI)
|
|
r.GET("translation/:code", GetTranslation)
|
|
}
|
|
|
|
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)
|
|
}
|