fix: 系统可暴露的配置信息
This commit is contained in:
@@ -23,6 +23,9 @@ func Setup(router *gin.Engine) {
|
|||||||
controller.NewIndex.Handler,
|
controller.NewIndex.Handler,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// 系统可暴露的配置信息
|
||||||
|
indexGroup.GET("/sys-conf", controller.NewCommont.SysConfig)
|
||||||
|
|
||||||
// 验证码操作处理
|
// 验证码操作处理
|
||||||
indexGroup.GET("/captchaImage",
|
indexGroup.GET("/captchaImage",
|
||||||
middleware.RateLimit(middleware.LimitOption{
|
middleware.RateLimit(middleware.LimitOption{
|
||||||
@@ -71,7 +74,6 @@ func Setup(router *gin.Engine) {
|
|||||||
commonGroup := router.Group("/common")
|
commonGroup := router.Group("/common")
|
||||||
{
|
{
|
||||||
commonGroup.GET("/hash", middleware.PreAuthorize(nil), controller.NewCommont.Hash)
|
commonGroup.GET("/hash", middleware.PreAuthorize(nil), controller.NewCommont.Hash)
|
||||||
indexGroup.GET("/sysConf", controller.NewCommont.SysConfig)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 文件操作处理
|
// 文件操作处理
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ func (s *CommontController) Hash(c *gin.Context) {
|
|||||||
|
|
||||||
// 系统可暴露的配置信息
|
// 系统可暴露的配置信息
|
||||||
//
|
//
|
||||||
// GET /sysConf
|
// GET /sys-conf
|
||||||
func (s *CommontController) SysConfig(c *gin.Context) {
|
func (s *CommontController) SysConfig(c *gin.Context) {
|
||||||
data := s.commontService.SystemConfigInfo()
|
data := s.commontService.SystemConfigInfo()
|
||||||
c.JSON(200, result.OkData(data))
|
c.JSON(200, result.OkData(data))
|
||||||
|
|||||||
Reference in New Issue
Block a user