Spaces:
Paused
Paused
Update index.js
Browse files
index.js
CHANGED
|
@@ -310,7 +310,7 @@ function generateRandomName(length) {
|
|
| 310 |
|
| 311 |
async function fetchCobaltOnly(url, opts = {}) {
|
| 312 |
try {
|
| 313 |
-
const response = await axios.post('https://
|
| 314 |
return response.data;
|
| 315 |
} catch (error) {
|
| 316 |
if (error.response) {
|
|
|
|
| 310 |
|
| 311 |
async function fetchCobaltOnly(url, opts = {}) {
|
| 312 |
try {
|
| 313 |
+
const response = await axios.post('https://cobalt.siputzx.my.id/', { url, ...opts }, { headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' } } );
|
| 314 |
return response.data;
|
| 315 |
} catch (error) {
|
| 316 |
if (error.response) {
|