pull/22/head
tycrek 3 years ago
parent 206bd4cf78
commit 8f97f7dd1b
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -97,7 +97,7 @@ function startup() {
// Assign routers ('/:resouceId' always needs to be LAST since it's a catch-all route) // Assign routers ('/:resouceId' always needs to be LAST since it's a catch-all route)
app.use('/', ROUTERS.upload); app.use('/', ROUTERS.upload);
ASS_PREMIUM.enabled && app.use(ASS_PREMIUM.endpoint, ASS_PREMIUM.router); ASS_PREMIUM.enabled && app.use(ASS_PREMIUM.endpoint, ASS_PREMIUM.router); // skipcq: JS-0093
app.use('/:resourceId', (req, _, next) => (req.resourceId = req.params.resourceId, next()), ROUTERS.resource); // skipcq: JS-0086, JS-0090 app.use('/:resourceId', (req, _, next) => (req.resourceId = req.params.resourceId, next()), ROUTERS.resource); // skipcq: JS-0086, JS-0090
// Error handler // Error handler

Loading…
Cancel
Save