These are chat archives for gin-gonic/gin

Apr 2017
Thomas Boerger
Apr 11 2017 09:04
How should that work if he's creating the gin instance directly on the line above?
The routes can't be created above...
Apr 11 2017 09:08
That was just an example I think
Thomas Boerger
Apr 11 2017 09:11
He said he defined it like that :)
At least that's how I understood him
Leo Adamek
Apr 11 2017 09:12

what I had was:

  • Create gin router
  • Add Routes
  • Add middleware

I just had to swap the adding of the middleware to be before the routes to fix it.

Thomas Boerger
Apr 11 2017 09:27
Ah, than you got it fixed now