mirror of
https://github.com/komari-monitor/komari.git
synced 2025-11-06 06:53:21 +00:00
16 lines
258 B
Go
16 lines
258 B
Go
package api
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"github.com/komari-monitor/komari/database"
|
|
)
|
|
|
|
func GetPublicSettings(c *gin.Context) {
|
|
p, e := database.GetPublicInfo()
|
|
if e != nil {
|
|
RespondError(c, 500, e.Error())
|
|
return
|
|
}
|
|
RespondSuccess(c, p)
|
|
}
|