You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
376 B

const API_SERVER = "https://ceilidhkit.com/API";
async function API_GET(target) {
try {
const response = await fetch(API_SERVER + target, {
method: 'GET',
headers: {
},
credentials: 'include',
});
return await response.text();
} catch (error) {
return {error: error.message};
}
}