fix: 系统可暴露的配置信息

This commit is contained in:
TsMask committed 2023-10-27 09:59:06 +08:00
1 parent 1e1264cee4
commit 144b324c5f
2 files changed
+4 -2

No files matched your search

+3 -1
View File
@@ -23,6 +23,9 @@ func Setup(router *gin.Engine) {
controller.NewIndex.Handler,
)
// 系统可暴露的配置信息
indexGroup.GET("/sys-conf", controller.NewCommont.SysConfig)
// 验证码操作处理
indexGroup.GET("/captchaImage",
middleware.RateLimit(middleware.LimitOption{
@@ -71,7 +74,6 @@ func Setup(router *gin.Engine) {
commonGroup := router.Group("/common")
{
commonGroup.GET("/hash", middleware.PreAuthorize(nil), controller.NewCommont.Hash)
indexGroup.GET("/sysConf", controller.NewCommont.SysConfig)
}
// 文件操作处理