mirror of
https://github.com/bunkerity/bunkerized-nginx
synced 2023-12-13 21:30:18 +01:00
change news base url
This commit is contained in:
parent
217d1aa502
commit
649d29b056
1 changed files with 6 additions and 9 deletions
|
@ -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) {}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue