mirror of
https://github.com/versia-pub/versia-go.git
synced 2025-12-06 06:28:18 +01:00
16 lines
300 B
Go
16 lines
300 B
Go
package meta_handler
|
|
|
|
import (
|
|
"github.com/gofiber/fiber/v2"
|
|
)
|
|
|
|
func (i *Handler) GetVersiaInstanceMetadata(c *fiber.Ctx) error {
|
|
m, err := i.instanceMetadataService.Ours(c.UserContext())
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
// TODO: Sign with the instance private key
|
|
return c.JSON(m.ToVersia())
|
|
}
|