chore: update graphql gen
This commit is contained in:
parent
2a1e9900e1
commit
ad4c95cb3f
@ -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 {
|
||||||
|
6032
internal/graph/generated/generated.go
Normal file
6032
internal/graph/generated/generated.go
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user