From bcb9660329260cb1c942ebddf7533b04d2c410ee Mon Sep 17 00:00:00 2001 From: kalebE36 Date: Sat, 28 Sep 2024 15:59:31 -0400 Subject: [PATCH] Dummy API Call --- src/components/Landing.tsx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/components/Landing.tsx b/src/components/Landing.tsx index e073bc5..8ebab9d 100644 --- a/src/components/Landing.tsx +++ b/src/components/Landing.tsx @@ -1,9 +1,26 @@ import { Button } from "@/components/ui/button" +import React, {useEffect} from "react"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card" import { BookOpen, Brain, Lightbulb, Rocket } from "lucide-react" // import Image from "astro/components/Image.astro" export default function LandingPage() { + useEffect(() => { + + fetch('http://3.147.36.237:3000/api/cards/ret-cards', { + method: 'GET', + headers: { + 'Content-Type': 'application/json', + }, + }) + .then(response => response.json()) + .then(data => { + console.log('Dummy API Response:', data); + }) + .catch(error => { + console.error('Error during API request:', error); + }); +}, []); return (