change dir stucture

This commit is contained in:
Zutatensuppe 2021-05-01 00:16:08 +02:00
parent e18b8d3b98
commit 62f8991e11
26 changed files with 8718 additions and 804 deletions

View file

@ -17,7 +17,7 @@ import {
UPLOAD_DIR,
UPLOAD_URL,
COMMON_DIR,
GAME_DIR,
PUBLIC_DIR,
TEMPLATE_DIR,
} from './Dirs.js'
import GameCommon from '../common/GameCommon.js'
@ -37,7 +37,7 @@ const storage = multer.diskStorage({
})
const upload = multer({storage}).single('file');
const statics = express.static(GAME_DIR)
const statics = express.static(PUBLIC_DIR)
const render = async (template, data) => {
const loader = new twing.TwingLoaderFilesystem(TEMPLATE_DIR)