Update to support serving card stuff
This commit is contained in:
parent
a05e7a8478
commit
5ccb65732f
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue