MORE ORGANIZE!!!
This commit is contained in:
parent
bfcad31cb4
commit
ace19a693d
7 changed files with 13 additions and 19 deletions
4
index.js
4
index.js
|
@ -15,11 +15,13 @@ app.listen(PORT, () => {
|
|||
console.log("Violet's Purgatory is now listening on port: " + PORT)
|
||||
})
|
||||
|
||||
var cachePath = path.join(staticpath, 'cached')
|
||||
var cachePath = path.join(__dirname, 'cached')
|
||||
var fontPath = path.join(staticpath, "fonts")
|
||||
var assetPath = path.join(__dirname, "assets")
|
||||
|
||||
app.use("/fonts", express.static(fontPath))
|
||||
app.use("/cached", express.static(cachePath))
|
||||
app.use("/imgs", express.static(path.join(assetPath, "Images")))
|
||||
|
||||
if (!fs.existsSync(cachePath)) {
|
||||
fs.mkdirSync(cachePath)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue