🔨 Clean up dockerfile

This commit is contained in:
2024-06-22 18:09:41 +08:00
parent 0f56dba457
commit 93b924d0a4
5 changed files with 24 additions and 37 deletions

View File

@ -3,7 +3,6 @@ package api
import "github.com/gofiber/fiber/v2"
func MapAPIs(app *fiber.App) {
app.Get("/.well-known", getMetadata)
app.Get("/.well-known/destinations", getDestinations)
api := app.Group("/api").Name("API")

View File

@ -5,16 +5,6 @@ import (
"github.com/spf13/viper"
)
func getMetadata(c *fiber.Ctx) error {
return c.JSON(fiber.Map{
"name": viper.GetString("name"),
"domain": viper.GetString("domain"),
"components": fiber.Map{
"passport": viper.GetString("passport.endpoint"),
},
})
}
func getDestinations(c *fiber.Ctx) error {
var data []string
for key := range viper.GetStringMap("destinations") {