()
| 37 | const [apiResponse, setApiResponse] = useState("") |
| 38 | |
| 39 | const makeRequestWithToken = async () => { |
| 40 | try { |
| 41 | const response = await fetch("/api/authenticated/greeting") |
| 42 | const data = await response.json() |
| 43 | setApiResponse(JSON.stringify(data, null, 2)) |
| 44 | } catch (error) { |
| 45 | setApiResponse("Failed to fetch data: " + error) |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | return ( |
| 50 | <div className="flex flex-col gap-4"> |
nothing calls this directly
no outgoing calls
no test coverage detected