forked from RiseUP/riseup_squad_03
fix(api): simplifica consultas de agendamentos e medicos
This commit is contained in:
11
test.mjs
Normal file
11
test.mjs
Normal file
@@ -0,0 +1,11 @@
|
||||
import { apiConfig } from './src/config/api.js';
|
||||
|
||||
async function test() {
|
||||
const url = `${apiConfig.restUrl}/appointments?select=*,patients(full_name),doctors(name)`;
|
||||
const res = await fetch(url, { headers: { apikey: apiConfig.anonKey }});
|
||||
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