Skip to content

Commit 305f33c

Browse files
committed
add env.json to deno example
1 parent 4673d24 commit 305f33c

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

denoexample.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
const req = await fetch(Deno.env.get('SCRAPER_ADDRESS') + '/users')
2+
const users = await req.json()
3+
console.log(users)
4+

examples/deno/env.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"primary_server": {
3+
"server_location": "http://localhost:4000",
4+
"api_key_id": "aa",
5+
"api_key": "bbb"
6+
},
7+
"alternative_servers": [],
8+
"login_users": [
9+
{
10+
"username": "scraping-site-username",
11+
"password": "scraping-site-password"
12+
}
13+
]
14+
}

0 commit comments

Comments
 (0)