Update to support serving card stuff

This commit is contained in:
Ethan O'Brien 2024-04-24 19:05:37 -05:00
parent a05e7a8478
commit 5ccb65732f

View file

@ -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)