15 lines
341 B
JavaScript
15 lines
341 B
JavaScript
class Updater {
|
|
archiveURL;
|
|
feedType;
|
|
constructor(archiveURL = "/", feedType = "rss") {
|
|
this.archiveURL = archiveURL;
|
|
this.feedType = feedType;
|
|
}
|
|
async getArchive() {
|
|
const res = await fetch(`${this.archiveURL}.${this.feedType}`);
|
|
console.log(res);
|
|
}
|
|
}
|
|
|
|
export { Updater as default };
|