Total Lines | 12 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | package handlers |
||
2 | |||
3 | import ( |
||
4 | "os" |
||
5 | |||
6 | "github.com/carlmjohnson/requests" |
||
7 | _ "github.com/joho/godotenv/autoload" // import USER_API_KEY from .env file |
||
8 | ) |
||
9 | |||
10 | func testClient() *requests.Builder { |
||
11 | return requests.URL("http://localhost:8000"). |
||
12 | Header("x-api-key", os.Getenv("USER_API_KEY")) |
||
13 | } |
||
14 |