Update to support serving card stuff
This commit is contained in:
parent
a05e7a8478
commit
5ccb65732f
@ -15,8 +15,9 @@ function createDirFromFile(path) {
|
||||
}
|
||||
|
||||
app.get('/*', function (req, res) {
|
||||
const expectedPath = __dirname + "/resources"+req.url;
|
||||
const expectedPath = __dirname + "/resources"+req.url.split("?")[0];
|
||||
createDirFromFile(expectedPath);
|
||||
|
||||
let downloading = [];
|
||||
if (fs.existsSync(expectedPath)) {
|
||||
res.sendFile(expectedPath)
|
||||
|
Loading…
x
Reference in New Issue
Block a user