Skip to content

Release 4.0.0

Choose a tag to compare

@deankarn deankarn released this 08 Feb 20:07
· 27 commits to master since this release

What Changed?

  • It used to be that the Group function handled 3 different scenarios:
  • .Group("/users") - group with existing middleware
  • .Group("/users", nil) - group but retain no middleware
  • .Group("/users", MoreMiddleware) - group, retain existing and add MoreMiddleware

This was confusing and even I was always referring to the function to remember what it all did so here is how it works now.

  1. .Group("/users") - group with existing middleware
  2. .GroupWithNone("/users") - group but retain no middleware.
  3. .GroupWithMore("/users", MoreMiddleware) - group, retain existing and add MoreMiddleware