mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Readded classes.js as file, modified files to work with new path
This commit is contained in:
parent
f23a116b42
commit
b73d764b82
7 changed files with 517 additions and 11 deletions
|
@ -152,7 +152,8 @@ app.get('/*', function (req, res) {
|
|||
logger.LogReq(req)
|
||||
|
||||
try {
|
||||
if (fs.lstatSync(curr).isDirectory()) {
|
||||
const stat = fs.lstatSync(curr)
|
||||
if (stat.isDirectory() || stat.isSymbolicLink()) {
|
||||
if (curr[curr.length - 1] !== '/') { curr += '/' }
|
||||
|
||||
let f = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue