diff --git a/src/routes/assets/icons/+server.ts b/src/routes/assets/icons/+server.ts new file mode 100644 index 0000000..30087b5 --- /dev/null +++ b/src/routes/assets/icons/+server.ts @@ -0,0 +1,10 @@ +import * as fs from "fs"; +import {json} from "@sveltejs/kit"; + +export function GET() { + let content = fs.readdirSync("static/assets/icons"); + + content = content.filter((entry) => entry != ".directory") + + return json(content); +} \ No newline at end of file