Bugfix: Make setupRouter() take a list of middlewares
Bugfix: Make setupRouter() take a list of middlewares

The redirectHTTPS middleware was being added too late - Chi requires all
middlewares to be added before routes are defined.

This changes the router setup to come after TLS has been evaluated so
that we can pass the middleware as an argument to setupRouter().

jamesog/scan,jamesog/scan,jamesog/scan