nhsuk / betahealth

Rendering application for beta symptom and condition pages
https://beta.nhs.uk
MIT License
2 stars 8 forks source link

Prevent content router middleware from being called twice #225

Closed teneightfive closed 7 years ago

teneightfive commented 7 years ago

The way the content router was loaded caused it to be loaded twice as it was being loaded for 2 paths.

This brings the content specific middleware back into the main router and uses a different way to define middleware only for specific routes