Closed chrismytton closed 9 years ago
Rather than just use() the middleware and attach it to all routes make it a named middleware then just use it in the places that need it.
use()
I'm not entirely sure why it didn't work correctly previously, but this fixes it.
Fixes https://github.com/mysociety/popit/issues/751
Rather than just
use()
the middleware and attach it to all routes make it a named middleware then just use it in the places that need it.I'm not entirely sure why it didn't work correctly previously, but this fixes it.
Fixes https://github.com/mysociety/popit/issues/751