File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -41,23 +41,17 @@ The goal of this API is to enable the full management of a Postgres database usi
41
41
``` sh
42
42
curl -X GET http://localhost:1337/ \
43
43
-H ' Content-Type: application/json' \
44
- -H ' pg: {} ' # see Postgres connection header below
44
+ -H ' X-Connection-Encrypted: ENCRYPTED_STRING '
45
45
```
46
46
``` js
47
47
const data = await fetch (' http://localhost:1337' , {
48
48
method: ' GET' ,
49
49
headers: {
50
50
' Content-Type' : ' application/json' ,
51
- ' pg ' : {} // see Postgres connection header below
51
+ ' X-Connection-Encrypted ' : ' ENCRYPTED_STRING '
52
52
}
53
53
})
54
54
```
55
- > Postgres connection header
56
- ``` json
57
- {
58
- "X-Connection-Encrypted" : " ENCRYPTED_CONNECTION_STRING"
59
- }
60
- ```
61
55
62
56
For security reasons, this API is best self-hosted and set up with ENV_VARS with the default connection string.
63
57
You can’t perform that action at this time.
0 commit comments