mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
20 lines
444 B
Go
20 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)
|
|
}
|