Add /admin page
This commit is contained in:
@@ -45,6 +45,13 @@ class Store {
|
||||
}
|
||||
|
||||
|
||||
async update(fid, data) {
|
||||
debug(`Update File ${this.getFilename(fid)}`);
|
||||
await fsp.writeJson(this.getFilename(fid) + '.json', data);
|
||||
return data;
|
||||
}
|
||||
|
||||
|
||||
async info(fid) {
|
||||
try {
|
||||
const info = await fsp.readJson(this.getFilename(fid) + '.json');
|
||||
|
||||
Reference in New Issue
Block a user