Skip to content

Instantly share code, notes, and snippets.

@LT-SYAII
Created October 15, 2025 01:41
Show Gist options
  • Save LT-SYAII/333a31cc60f0bf8edad27d0e916c6dae to your computer and use it in GitHub Desktop.
Save LT-SYAII/333a31cc60f0bf8edad27d0e916c6dae to your computer and use it in GitHub Desktop.
Example for use web Proxy untuk kebutuhan imam
import axios from "axios";
const PROXY_URL = "https://proxied.syaii.my.id"
// - Example Method GET
const response = await axios.get(`${PROXY_URL}/?url=https://ipwho.is`, {
headers: {
"Request-By": "Bang_Syaii"
}
}).catch(e => e.response);
console.log(response);
// - Example Method [POST, PUT, PATCH, DELETE]
// note: support 2 tipe request cik jadi sesuaikan saja
const response = awai axios.post(`${PROXY_URL}/?url=https://ipwho.is`, {
data: "hy aku syaii (contoh)"
},
headers: {
"Request-By": "Bang_Syaii"
}
}).catch(e => e.response);
console.log(response.data);
@LT-SYAII
Copy link
Author

Bisa pakai library lain yah asal ngikutin caranya seperti diatas ⏫

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment