change news base url

This commit is contained in:
BlasenhauerJ 2023-04-15 14:34:51 +02:00
parent 217d1aa502
commit 649d29b056
1 changed files with 6 additions and 9 deletions

View File

@ -35,21 +35,18 @@ class Menu {
class News {
constructor() {
this.BASE_URL = "https://www.staging.bunkerweb.io/";
this.BASE_URL = "https://bunkerweb.io/";
this.init();
}
init() {
window.addEventListener("load", async () => {
try {
const res = await fetch(
"https://www.staging.bunkerweb.io/api/posts/0/2",
{
headers: {
method: "GET",
},
}
);
const res = await fetch("https://bunkerweb.io/api/posts/0/2", {
headers: {
method: "GET",
},
});
return await this.render(res);
} catch (err) {}
});