Skip to content

Commit

Permalink
Update default gateway link
Browse files Browse the repository at this point in the history
  • Loading branch information
guiguan committed Jul 9, 2020
1 parent a31e462 commit 321e22b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ This step will authenticate with ProvenDB so you can access `proofable-api`. Whe

```go
creds, err := authcli.AuthenticateForGRPC(ctx,
"https://apigateway.dev.provendb.com",
"https://apigateway.provendb.com",
true,
"",
)
Expand Down
4 changes: 2 additions & 2 deletions cmd/proofable-cli/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @Author: guiguan
* @Date: 2019-09-16T15:59:40+10:00
* @Last modified by: guiguan
* @Last modified time: 2020-07-08T10:51:06+10:00
* @Last modified time: 2020-07-09T13:48:44+10:00
*/

package cmd
Expand Down Expand Up @@ -64,7 +64,7 @@ const (

defaultAPIHostPort = "api.proofable.io:443"
defaultAPISecure = true
defaultProvenDBAPIGatewayEndpoint = "https://apigateway.dev.provendb.com"
defaultProvenDBAPIGatewayEndpoint = "https://apigateway.provendb.com"

viperKeyAPIHostPort = nameAPIHostPort
viperKeyAPISecure = nameAPISecure
Expand Down
4 changes: 2 additions & 2 deletions docs/example.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @Author: guiguan
* @Date: 2020-03-31T12:29:46+11:00
* @Last modified by: guiguan
* @Last modified time: 2020-07-08T10:51:06+10:00
* @Last modified time: 2020-07-09T13:48:44+10:00
*/

package main
Expand All @@ -44,7 +44,7 @@ func main() {

// authenticate with ProvenDB
creds, err := authcli.AuthenticateForGRPC(ctx,
"https://apigateway.dev.provendb.com",
"https://apigateway.provendb.com",
true,
"",
)
Expand Down
2 changes: 1 addition & 1 deletion node_sdk/docs/example.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ This step will authenticate with ProvenDB so you can access `proofable-api`. Whe
This step creates a Proofable API gRPC [`client`](https://docs.proofable.io/node_sdk/docs/reference/classes/_index_.apiclient.html). After using the client, you can destroy the client using [`client.close()`](https://docs.proofable.io/node_sdk/docs/reference/classes/_index_.apiclient.html#close)

```typescript
const client = newAPIClient("https://apigateway.dev.provendb.com");
const client = newAPIClient("api.proofable.io:443");
```

## Step 3: create an empty trie
Expand Down
4 changes: 2 additions & 2 deletions node_sdk/tests/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @Author: guiguan
* @Date: 2020-06-26T16:34:25+10:00
* @Last modified by: guiguan
* @Last modified time: 2020-07-07T12:28:03+10:00
* @Last modified time: 2020-07-09T13:48:44+10:00
*/

import fs from "fs";
Expand All @@ -32,7 +32,7 @@ export function getTestClient(): APIClient {
const config = {
apiHostPort: "api.dev.proofable.io:443",
apiSecure: true,
provendbApiGatewayEndpoint: "https://apigateway.dev.provendb.com",
provendbApiGatewayEndpoint: "https://apigateway.provendb.com",
devToken: undefined,
};

Expand Down

0 comments on commit 321e22b

Please sign in to comment.