diff --git a/api/api.go b/api/api.go index 856db8da..39bb8662 100644 --- a/api/api.go +++ b/api/api.go @@ -84,6 +84,7 @@ func (api *api) CreateApp(createAppRequest *CreateAppRequest) (*CreateAppRespons relayUrl := api.cfg.GetRelayUrl() responseBody := &CreateAppResponse{} + responseBody.Id = app.ID responseBody.Name = createAppRequest.Name responseBody.Pubkey = app.NostrPubkey responseBody.PairingSecret = pairingSecretKey diff --git a/api/models.go b/api/models.go index 5c514b8b..7bc9609b 100644 --- a/api/models.go +++ b/api/models.go @@ -138,6 +138,7 @@ type CreateAppResponse struct { PairingUri string `json:"pairingUri"` PairingSecret string `json:"pairingSecretKey"` Pubkey string `json:"pairingPublicKey"` + Id uint `json:"id"` Name string `json:"name"` ReturnTo string `json:"returnTo"` } diff --git a/frontend/src/types.ts b/frontend/src/types.ts index 4f51fd1f..c389f060 100644 --- a/frontend/src/types.ts +++ b/frontend/src/types.ts @@ -167,6 +167,7 @@ export interface CreateAppRequest { } export interface CreateAppResponse { + id: number; name: string; pairingUri: string; pairingPublicKey: string;