2024-02-01 15:26:17 +00:00
|
|
|
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"),
|
2024-02-21 14:58:51 +00:00
|
|
|
"components": fiber.Map{
|
2024-04-13 11:26:44 +00:00
|
|
|
"passport": viper.GetString("passport.endpoint"),
|
2024-02-21 14:58:51 +00:00
|
|
|
},
|
2024-02-01 15:26:17 +00:00
|
|
|
})
|
|
|
|
}
|