Skip to content

Commit 9cfb14b

Browse files
committed
Removes unnecessary header
1 parent 9ea2898 commit 9cfb14b

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

docs/source/index.html.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,23 +41,17 @@ The goal of this API is to enable the full management of a Postgres database usi
4141
```sh
4242
curl -X GET http://localhost:1337/ \
4343
-H 'Content-Type: application/json' \
44-
-H 'pg: {}' # see Postgres connection header below
44+
-H 'X-Connection-Encrypted: ENCRYPTED_STRING'
4545
```
4646
```js
4747
const data = await fetch('http://localhost:1337', {
4848
method: 'GET',
4949
headers: {
5050
'Content-Type': 'application/json',
51-
'pg': {} // see Postgres connection header below
51+
'X-Connection-Encrypted': 'ENCRYPTED_STRING'
5252
}
5353
})
5454
```
55-
> Postgres connection header
56-
```json
57-
{
58-
"X-Connection-Encrypted": "ENCRYPTED_CONNECTION_STRING"
59-
}
60-
```
6155

6256
For security reasons, this API is best self-hosted and set up with ENV_VARS with the default connection string.
6357

0 commit comments

Comments
 (0)