diff --git a/dwelling.js b/dwelling.js index b04c9eb..3ac65c1 100644 --- a/dwelling.js +++ b/dwelling.js @@ -3,7 +3,7 @@ const path = require("path"); const Koa = require("koa"); const koaPug = require("koa-pug"); const koaRouter = require("koa-router"); -const koaServe = require("koa-static"); +// const koaServe = require("koa-static"); const bodyParser = require("koa-body")({multipart: true}); const mysql = require("mysql"); const fetch = require("node-fetch"); @@ -152,8 +152,8 @@ module.exports = () => { await ctx.render('500'); } }) - .use(koaServe(path.join("static", "shared"))) - .use(koaServe(path.join("static", "dwelling"))) + // .use(koaServe(path.join("static", "shared"))) + // .use(koaServe(path.join("static", "dwelling"))) .use(dwelling_router.routes()) .listen(config.dwelling.port, config.dwelling.host); diff --git a/radio.js b/radio.js index b2c4620..2dfaaf2 100644 --- a/radio.js +++ b/radio.js @@ -4,7 +4,7 @@ const path = require("path"); const Koa = require("koa"); const koaPug = require("koa-pug"); const koaRouter = require("koa-router"); -const koaServe = require("koa-static"); +// const koaServe = require("koa-static"); const fetch = require("node-fetch"); const config = require("./config"); @@ -53,8 +53,8 @@ module.exports = () => { setRoutes(radio_router); app - .use(koaServe(path.join("static", "shared"))) - .use(koaServe(path.join("static", "radio"))) + // .use(koaServe(path.join("static", "shared"))) + // .use(koaServe(path.join("static", "radio"))) .use(radio_router.routes()) .listen(config.radio.port, config.radio.host);