mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
fix(self-check): ws 403 if not install
This commit is contained in:
parent
5b8b3d17c2
commit
0506098647
1 changed files with 4 additions and 3 deletions
|
@ -28,8 +28,10 @@ func InitPrivateRouter(r *gin.RouterGroup) {
|
|||
}
|
||||
|
||||
func InitSelfCheckRouter(r *gin.RouterGroup) {
|
||||
r.GET("self_check", authIfInstalled, SelfCheck)
|
||||
r.POST("self_check/:name/fix", authIfInstalled, SelfCheckFix)
|
||||
g := r.Group("self_check")
|
||||
g.GET("", authIfInstalled, SelfCheck)
|
||||
g.POST("/:name/fix", authIfInstalled, SelfCheckFix)
|
||||
g.GET("websocket", authIfInstalled, CheckWebSocket)
|
||||
}
|
||||
|
||||
func InitBackupRestoreRouter(r *gin.RouterGroup) {
|
||||
|
@ -41,5 +43,4 @@ func InitBackupRestoreRouter(r *gin.RouterGroup) {
|
|||
|
||||
func InitWebSocketRouter(r *gin.RouterGroup) {
|
||||
r.GET("upgrade/perform", PerformCoreUpgrade)
|
||||
r.GET("self_check/websocket", CheckWebSocket)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue