An atproto PDS written in Go
at 0.0.2 440 B view raw
1package server 2 3import ( 4 "github.com/labstack/echo/v4" 5) 6 7func (s *Server) handleWellKnown(e echo.Context) error { 8 return e.JSON(200, map[string]any{ 9 "@context": []string{ 10 "https://www.w3.org/ns/did/v1", 11 }, 12 "id": s.config.Did, 13 "service": []map[string]string{ 14 { 15 "id": "#atproto_pds", 16 "type": "AtprotoPersonalDataServer", 17 "serviceEndpoint": "https://" + s.config.Hostname, 18 }, 19 }, 20 }) 21}