Skip to content

Commit

Permalink
Change the indentation to 4 spaces in README.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsluoyz committed Aug 19, 2018
1 parent b2e3cde commit dc60d41
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ go get github.com/gin-contrib/authz
package main

import (
"net/http"
"net/http"

"github.com/casbin/casbin"
"github.com/gin-contrib/authz"
"github.com/gin-gonic/gin"
"github.com/casbin/casbin"
"github.com/gin-contrib/authz"
"github.com/gin-gonic/gin"
)

func main() {
// load the casbin model and policy from files, database is also supported.
e := casbin.NewEnforcer("authz_model.conf", "authz_policy.csv")
// load the casbin model and policy from files, database is also supported.
e := casbin.NewEnforcer("authz_model.conf", "authz_policy.csv")

// define your router, and use the Casbin authz middleware.
// the access that is denied by authz will return HTTP 403 error.
// define your router, and use the Casbin authz middleware.
// the access that is denied by authz will return HTTP 403 error.
router := gin.New()
router.Use(authz.NewAuthorizer(e))
}
Expand Down

0 comments on commit dc60d41

Please sign in to comment.