17 lines
351 B
JavaScript
17 lines
351 B
JavaScript
'use strict';
|
|
|
|
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);
|
|
}
|
|
}
|
|
|
|
module.exports = Updater;
|