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
4141``` sh
4242curl -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
4747const 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
6256For security reasons, this API is best self-hosted and set up with ENV_VARS with the default connection string.
6357
You can’t perform that action at this time.
0 commit comments