Skip to content
Permalink
Browse files Browse the repository at this point in the history
fix: 解决K8s配置下载漏洞
  • Loading branch information
ssongliu committed Jan 12, 2023
1 parent 8205703 commit 7ef42bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/router/v1/v1api.go
Expand Up @@ -66,8 +66,8 @@ func V1(parent iris.Party) {
mvc.New(AuthScope.Party("/msg/subscribes")).HandleError(ErrorHandler).Handle(controller.NewMessageSubscribeController())
mvc.New(AuthScope.Party("/user/messages")).HandleError(ErrorHandler).Handle(controller.NewUserMsgController())
mvc.New(AuthScope.Party("/user/settings")).HandleError(ErrorHandler).Handle(controller.NewUserSettingController())
AuthScope.Get("/clusters/kubeconfig/{name}", downloadKubeconfig)
WhiteScope = v1.Party("/")
WhiteScope.Get("/clusters/kubeconfig/{name}", downloadKubeconfig)
WhiteScope.Get("/captcha", generateCaptcha)
mvc.New(WhiteScope.Party("/theme")).HandleError(ErrorHandler).Handle(controller.NewThemeController())

Expand Down

0 comments on commit 7ef42bf

Please sign in to comment.