akf-forum/themes/index.js

6 lines
169 B
JavaScript
Raw Normal View History

2022-10-10 00:04:25 +03:00
const fs = require("fs");
for (const theme of fs.readdirSync("./themes")) {
if (theme === "index.js") continue;
module.exports[theme] = require(`./${theme}`);
}