Add /admin page

This commit is contained in:
Christoph Wiechert
2017-07-12 15:19:53 +02:00
parent 4c2f5c1d94
commit 1bb9d5792f
10 changed files with 300 additions and 7 deletions

View File

@@ -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');