mirror of
https://github.com/PretendoNetwork/BOSS.git
synced 2026-09-30 12:57:28 -05:00
fixed again
This commit is contained in:
@@ -7,8 +7,8 @@ const subdomain = require('express-subdomain');
|
||||
const npts = express.Router();
|
||||
|
||||
// Setup routes
|
||||
npts.get('/p01/tasksheet/1/:id/:hash/:fileName', (request, response) => {
|
||||
const { id, fileName } = request.params;
|
||||
npts.get('/p01/tasksheet/:id/:hash/:fileName', (request, response) => {
|
||||
const { id, hash, fileName } = request.params;
|
||||
const tasksheetPath = path.normalize(`${__dirname}/../../cdn/tasksheet/${id}/${hash}/${fileName}`);
|
||||
|
||||
if (fs.existsSync(tasksheetPath)) {
|
||||
|
||||
Reference in New Issue
Block a user