File size: 391 Bytes
7d88b7e
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
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));
};