forked from RiseUP/riseup_squad_03
fix(api): simplifica consultas de agendamentos e medicos
This commit is contained in:
11
test2.mjs
Normal file
11
test2.mjs
Normal file
@@ -0,0 +1,11 @@
|
||||
const url = "https://yuanqfswhberkoevtmfr.supabase.co/rest/v1/appointments?select=*,patients(full_name),doctors(name)";
|
||||
const key = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Inl1YW5xZnN3aGJlcmtvZXZ0bWZyIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTQ5NTQzNjksImV4cCI6MjA3MDUzMDM2OX0.g8Fm4XAvtX46zifBZnYVH4tVuQkqUH6Ia9CXQj4DztQ";
|
||||
|
||||
async function test() {
|
||||
const res = await fetch(url, { headers: { apikey: key, Authorization: "Bearer " + key }});
|
||||
const text = await res.text();
|
||||
console.log('Status:', res.status);
|
||||
console.log('Response:', text);
|
||||
}
|
||||
|
||||
test().catch(console.error);
|
||||
Reference in New Issue
Block a user