🎉 Persistent config 🎉

After sweat and tears... It's there!
This commit is contained in:
Aj - Thomas committed 2022-05-12 23:05:54 +02:00
1 parent 91f636ca97
commit 3ce9c98e03
13 files changed
+178 -62

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ function Get(req: NextApiRequest, res: NextApiResponse) {
const files = fs.readdirSync('data/configs');
// Strip the .json extension from the file name
const configs = files.map((file) => file.replace('.json', ''));
// Return the list of files
return res.status(200).json(configs);
}