mirror of
https://github.com/keven1024/015.git
synced 2026-05-26 07:08:02 +00:00
16 lines
317 B
Go
16 lines
317 B
Go
package controllers
|
|
|
|
import (
|
|
"backend/internal/utils"
|
|
|
|
"github.com/labstack/echo/v4"
|
|
)
|
|
|
|
func GetConfig(c echo.Context) error {
|
|
return utils.HTTPSuccessHandler(c, map[string]any{
|
|
"site_title": utils.GetEnv("site_title"),
|
|
"site_desc": utils.GetEnv("site_desc"),
|
|
"site_url": utils.GetEnv("site_url"),
|
|
})
|
|
}
|