These are chat archives for gin-gonic/gin

11th
Apr 2017
Thomas Boerger
@tboerger
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...
Maciej
@nazwa
Apr 11 2017 09:08
That was just an example I think
Thomas Boerger
@tboerger
Apr 11 2017 09:11
He said he defined it like that :)
At least that's how I understood him
Leo Adamek
@LeoAdamek
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
@tboerger
Apr 11 2017 09:27
Ah, than you got it fixed now