1
0
mirror of https://github.com/comatory/fb2iCal synced 2025-06-05 22:09:25 +02:00

fix missing route handlers

This commit is contained in:
Ondřej Synáček
2020-11-15 15:32:07 +01:00
parent 03192887da
commit c6d85b8839
2 changed files with 7 additions and 9 deletions

View File

@ -44,11 +44,6 @@ const configureApplication = ({
app.use(forceSecure)
}
if (appLogger) {
app.post('/download/html', downloadHTML(appLogger))
app.post('/download', download(appLogger))
}
// Server logs You can alternatively enable these to mimic logs created
// by your web server
if (routeLogger) {
@ -83,6 +78,9 @@ const configureApplication = ({
})
}
app.use('/download/html', checkURLParameter)
app.use('/download', checkURLParameter)
app.get('/error', error)
app.get('/about', (req, res) => {
@ -92,9 +90,9 @@ const configureApplication = ({
// NOTE: Capture all unkown URLs
app.get('*', notFound)
app.use('/download/html', checkURLParameter)
app.use('/download', checkURLParameter)
app.post('/download/html', downloadHTML(appLogger || null))
app.post('/download', download(appLogger || null))
app.use(genericErrorHandler)