35 headers: new Headers({ ...Object.fromEntries(request.headers), "User-Agent": "Val Town" }),
36 });
37 const response = await fetch(newRequest);
38 if (response.status === 404)
39 return new Response(
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({
8
9 // Instantiation of the Twilio client itself fails, so we make use of the models only, and
10 // call the endpoint manually with `fetch`.
11 const VoiceResponse = Twilio.twiml.VoiceResponse;
12 const response = new VoiceResponse();
19 const auth = btoa(`${twilioAccountSID}:${twilioAuthToken}`);
20
21 const result = await fetch(url, {
22 method: "POST",
23 headers: {
17
18 try {
19 const response = await fetch('/download', {
20 method: 'POST',
21 headers: {
119 }
120
121 // Fetch video details and download link via yt-dlp proxy
122 const ytResponse = await fetch('https://yt-dlp-proxy.deno.dev/extract', {
123 method: 'POST',
124 headers: {
17
18 try {
19 const response = await fetch('/download', {
20 method: 'POST',
21 headers: {
119 }
120
121 // Fetch video details and download link via yt-dlp proxy
122 const ytResponse = await fetch('https://yt-dlp-proxy.deno.dev/extract', {
123 method: 'POST',
124 headers: {
182
183 try {
184 const response = await fetch("/", {
185 method: "POST",
186 body: JSON.stringify({
52
53 useEffect(() => {
54 async function fetchWeather() {
55 try {
56 const response = await fetch(
57 "https://api.open-meteo.com/v1/forecast?latitude=1.3521&longitude=103.8198&hourly=temperature_2m,weathercode¤t_weather=true&temperature_unit=celsius&windspeed_unit=kmh&precipitation_unit=mm&timezone=Asia%2FSingapore&forecast_days=1"
58 );
61 setLoading(false);
62 } catch (error) {
63 console.error("Weather fetch failed", error);
64 setLoading(false);
65 }
66 }
67 fetchWeather();
68 }, []);
69