diff --git a/index.js b/index.js index 197eaed..99b046f 100644 --- a/index.js +++ b/index.js @@ -40,6 +40,7 @@ app.listen(PORT, () => { var cachePath = path.join(staticpath, 'cached') var gamePath = path.join(__dirname, "games") +var fontPath = path.join(staticpath, "fonts") // var imgPath = path.join(staticpath, 'imgs') app.use("/games", function (req, res, next) { @@ -51,6 +52,8 @@ app.use("/games", function (req, res, next) { app.use("/games", express.static(gamePath)) +app.use("/fonts", express.static(fontPath)) + if (!fs.existsSync(cachePath)) { fs.mkdirSync(cachePath) } else {