Spaces:
Sleeping
Sleeping
| export const GET = async () => { | |
| const response = await fetch("https://dylanebert-research-tracker-backend.hf.space/data", { | |
| method: "GET", | |
| headers: { | |
| Authorization: "Bearer " + import.meta.env.VITE_HF_TOKEN, | |
| "Cache-Control": "no-cache", | |
| }, | |
| }); | |
| const rows = await response.json(); | |
| return new Response(JSON.stringify(rows)); | |
| }; | |