router.go 537 B

123456789101112131415161718192021
  1. package system
  2. import (
  3. "github.com/gin-gonic/gin"
  4. )
  5. func InitPublicRouter(r *gin.RouterGroup) {
  6. r.GET("install", InstallLockCheck)
  7. r.POST("install", InstallNginxUI)
  8. r.GET("translation/:code", GetTranslation)
  9. }
  10. func InitPrivateRouter(r *gin.RouterGroup) {
  11. r.GET("settings/server/name", GetServerName)
  12. r.GET("settings", GetSettings)
  13. r.POST("settings", SaveSettings)
  14. r.GET("upgrade/release", GetRelease)
  15. r.GET("upgrade/current", GetCurrentVersion)
  16. r.GET("upgrade/perform", PerformCoreUpgrade)
  17. }