Formatting

This commit is contained in:
Valentin Brandl 2024-07-30 17:39:41 +02:00
parent 4b6f25656b
commit 2dbd724622
Signed by: vbrandl
GPG Key ID: CAD4DA1A789125F9
2 changed files with 12 additions and 12 deletions

View File

@ -27,7 +27,7 @@
}; };
async function loadNames(keyword: String) { async function loadNames(keyword: String) {
const url = "./names"; const url = './names';
const response = await fetch(url); const response = await fetch(url);
return await response.json(); return await response.json();
} }

View File

@ -6,7 +6,7 @@ export function GET() {
const names = readdirSync(storagePath).filter((f) => const names = readdirSync(storagePath).filter((f) =>
statSync(`${storagePath}/${f}`).isDirectory() statSync(`${storagePath}/${f}`).isDirectory()
); );
names.sort() names.sort();
return json(names); return json(names);
} }