18 lines
293 B
Go
18 lines
293 B
Go
package http_handler
|
|
|
|
import (
|
|
"acme-mana/src/conf"
|
|
"acme-mana/src/server/model"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
var ConfHandlerInstance = &ConfHandler{}
|
|
|
|
type ConfHandler struct {
|
|
}
|
|
|
|
func (h *ConfHandler) Get(c *gin.Context) {
|
|
config := conf.Config()
|
|
c.JSON(200, model.SuccessD(config))
|
|
}
|