19 lines
497 B
Go
19 lines
497 B
Go
package handler
|
|
|
|
import (
|
|
"github.com/ArtalkJS/Artalk/internal/core"
|
|
"github.com/ArtalkJS/Artalk/server/common"
|
|
"github.com/gofiber/fiber/v2"
|
|
)
|
|
|
|
// @Summary Config
|
|
// @Description Get system configurations
|
|
// @Tags System
|
|
// @Success 200 {object} common.JSONResult{data=config.Config}
|
|
// @Router /conf [get]
|
|
func Conf(app *core.App, router fiber.Router) {
|
|
router.All("/conf", func(c *fiber.Ctx) error {
|
|
return common.RespData(c, common.GetApiPublicConfDataMap(app, c))
|
|
})
|
|
}
|