feat: Implement getApp graphQL query

This commit is contained in:
Faruk AYDIN
2021-10-09 13:31:44 +02:00
committed by Ali BARIN
parent 4dbbf37844
commit f36a5cb6d8
5 changed files with 59 additions and 2 deletions

View File

@@ -8,6 +8,11 @@ class App {
if(!name) return this.list;
return this.list.filter((app) => app.includes(name.toLowerCase()));
}
static findOneByName(name: string): object {
const rawAppData = fs.readFileSync(this.folderPath + `/${name}/info.json`, 'utf-8');
return JSON.parse(rawAppData);
}
}
export default App;