Using router macro inside of a closure produces nothing but HTTP 400 errors
I want to pass an a configuration object to my routes as well as specify a custom port, so I'm using a closure around the router macro. While this does compile and run (on the correct port no less), all requests lead to an Http400 error page.

Minimal example:

```nim
import jester

proc configRoutes() =
  router myrouter:
    get "/":
      resp "foo"

configRoutes()
var settings = newSettings(port=Port(8000))
var myjester = initJester(settings=settings)
myjester.serve()
```