Sort names before returning
This commit is contained in:
parent
62b1fd98b7
commit
fc0de8b7e0
@ -6,6 +6,7 @@ export function GET() {
|
||||
const names = readdirSync(storagePath).filter((f) =>
|
||||
statSync(`${storagePath}/${f}`).isDirectory()
|
||||
);
|
||||
names.sort()
|
||||
|
||||
return json(names);
|
||||
}
|
||||
|
Reference in New Issue
Block a user