File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -8,17 +8,19 @@ A middleware for request validation created with Go and Vault
88* Run [ Profile & Role Service] ( https://github.com/braulioinf/dummy_roles_profiles )
99* Run [ Account Microservice] ( https://github.com/ExponentialEducation/account-microservice )
1010
11- ## Install
11+ ## Installation
1212
1313` go get -u github.com/braulioinf/rbac `
1414
15- ## Example
15+ ## Basic Usage
1616
1717Middleware can be added to a router using ` Router.Use() ` :
1818
1919``` go
2020// package main
2121
22+ import " github.com/braulioinf/rbac"
23+
2224func main () {
2325 r := mux.NewRouter ()
2426 r.HandleFunc (" /v1/example" , handlerFunc).Methods (" POST" )
@@ -45,3 +47,7 @@ func main() {
4547 }
4648}
4749```
50+
51+ ## Full example
52+
53+ For more information [ Example directory] ( https://github.com/braulioinf/rbac/tree/develop/example )
You can’t perform that action at this time.
0 commit comments