Initial commit

This commit is contained in:
2025-11-09 10:23:23 +01:00
commit f890341ffe
34 changed files with 1058 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
import JsonManager from "./utils/jsonManager.js";
export class UsersToken {
constructor(filePath) {
this.filePath = filePath;
this.data = JsonManager.read(this.filePath);
}
reload() {
this.data = JsonManager.read(this.filePath);
}
upsert(data) {
JsonManager.upsertToken(this.filePath, data);
this.reload();
}
get(index){
return this.data[index];
}
getAll(){
return this.data;
}
}