chore: update graphql gen

This commit is contained in:
Jon Lundy 2022-09-06 20:10:09 -06:00
parent 2a1e9900e1
commit ad4c95cb3f
Signed by untrusted user who does not match committer: xuu
GPG Key ID: C63E6D61F3035024
2 changed files with 6036 additions and 2 deletions

View File

@ -8,7 +8,7 @@ import (
"fmt" "fmt"
"net" "net"
"net/http" "net/http"
"path" "net/url"
"strings" "strings"
"github.com/keys-pub/keys" "github.com/keys-pub/keys"
@ -124,12 +124,14 @@ func (s *service) ServeHTTP(w http.ResponseWriter, r *http.Request) {
return return
} }
basePath, _ := url.JoinPath(s.baseURL, a.inbox.String())
err = json.NewEncoder(w).Encode( err = json.NewEncoder(w).Encode(
struct { struct {
Endpoint string `json:"endpoint"` Endpoint string `json:"endpoint"`
Key string `json:"key"` Key string `json:"key"`
}{ }{
Endpoint: path.Join(s.baseURL, a.inbox.String()), Endpoint: basePath,
Key: a.pubkey.ID().String(), Key: a.pubkey.ID().String(),
}) })
if err != nil { if err != nil {

File diff suppressed because it is too large Load Diff