14 lines
232 B
Go
14 lines
232 B
Go
|
package server
|
||
|
|
||
|
import (
|
||
|
"github.com/gofiber/fiber/v2"
|
||
|
"github.com/spf13/viper"
|
||
|
)
|
||
|
|
||
|
func getMetadata(c *fiber.Ctx) error {
|
||
|
return c.JSON(fiber.Map{
|
||
|
"name": viper.GetString("name"),
|
||
|
"domain": viper.GetString("domain"),
|
||
|
})
|
||
|
}
|