Skip to content

Commit

Permalink
Update Group documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean Karn committed Jun 25, 2017
1 parent b0c58b5 commit 967881d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ contactinfo.Delete("/delete", ...)

// creates a group for others + inherits all middleware registered using l.Use() + adds
// OtherHandler to middleware
others := l.Group("/others", OtherHandler)
others := l.GroupWithMore("/others", OtherHandler)

// creates a group for admin WITH NO MIDDLEWARE... more can be added using admin.Use()
admin := l.Group("/admin",nil)
admin := l.GroupWithNone("/admin")
admin.Use(SomeAdminSecurityMiddleware)
...
```
Expand Down
4 changes: 2 additions & 2 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ example group definitions
// creates a group for others + inherits all middleware registered using l.Use() +
// adds OtherHandler to middleware
others := l.Group("/others", OtherHandler)
others := l.GroupWithMore("/others", OtherHandler)
// creates a group for admin WITH NO MIDDLEWARE... more can be added using admin.Use()
admin := l.Group("/admin",nil)
admin := l.GroupWithNone("/admin")
admin.Use(SomeAdminSecurityMiddleware)
...
Expand Down

0 comments on commit 967881d

Please sign in to comment.