182
183 try {
184 const response = await fetch("/", {
185 method: "POST",
186 body: JSON.stringify({
182
183 try {
184 const response = await fetch("/", {
185 method: "POST",
186 body: JSON.stringify({
182
183 try {
184 const response = await fetch("/", {
185 method: "POST",
186 body: JSON.stringify({
182
183 try {
184 const response = await fetch("/", {
185 method: "POST",
186 body: JSON.stringify({
182
183 try {
184 const response = await fetch("/", {
185 method: "POST",
186 body: JSON.stringify({
182
183 try {
184 const response = await fetch("/", {
185 method: "POST",
186 body: JSON.stringify({
9
10 useEffect(() => {
11 fetchBirthdays();
12 }, []);
13
14 const fetchBirthdays = async () => {
15 const response = await fetch('/birthdays');
16 const data = await response.json();
17 setBirthdays(data);
20 const handleSubmit = async (e) => {
21 e.preventDefault();
22 await fetch('/birthdays', {
23 method: 'POST',
24 headers: { 'Content-Type': 'application/json' },
27 setName('');
28 setDate('');
29 fetchBirthdays();
30 };
31
32 const deleteBirthday = async (id) => {
33 await fetch(`/birthdays/${id}`, { method: 'DELETE' });
34 fetchBirthdays();
35 };
36
19
20 try {
21 const response = await fetch(url, options);
22 const data = await response.json();
23 console.log({ data });
74 formData.append('size', size);
75
76 const response = await fetch('/crop', {
77 method: 'POST',
78 body: formData
16 : Math.floor((Date.now() - 2 * 24 * 60 * 60 * 1000) / 1000);
17
18 // Fetch and log tweets
19 const response = await socialDataSearch(`${query} since_time:${timeFrame}`);
20 console.log("Response from socialDataSearch:", response);