Skip to content

Commit 204e827

Browse files
rodneylabsoedirgo
authored andcommitted
Update README.md
1 parent 81d5937 commit 204e827

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ let body = resp
7474
use postgrest::Postgrest;
7575
use dotenv;
7676

77-
dotenv().ok();
77+
dotenv::dotenv().ok();
7878

79-
let client = Postgrest::new("https://your.supabase.endpoint/rest/v1/");
79+
let client = Postgrest::new("https://your.supabase.endpoint/rest/v1/")
8080
.insert_header(
8181
"apikey",
82-
env::var("SUPABASE_PUBLIC_API_KEY").unwrap())
82+
dotenv::var("SUPABASE_PUBLIC_API_KEY").unwrap())
8383
let resp = client
8484
.from("your_table")
8585
.select("*")

0 commit comments

Comments
 (0)