Skip to content

Commit

Permalink
docs: fixed example custom middlewares
Browse files Browse the repository at this point in the history
Signed-off-by: Avelino <t@avelino.xxx>
  • Loading branch information
avelino committed Sep 7, 2020
1 parent 7c3cf2b commit 28871ed
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
20 changes: 10 additions & 10 deletions docs/prest-as-web-framework/custom-middlewares/_index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ import (
"log"
"net/http"

"github.com/prest/adapters/postgres"
"github.com/prest/cmd"
"github.com/prest/config"
"github.com/prest/config/router"
"github.com/prest/middlewares"
"github.com/prest/prest/adapters/postgres"
"github.com/prest/prest/cmd"
"github.com/prest/prest/config"
"github.com/prest/prest/config/router"
"github.com/prest/prest/middlewares"
)

func main() {
Expand Down Expand Up @@ -65,11 +65,11 @@ import (
"net/http"


"github.com/prest/adapters/postgres"
"github.com/prest/cmd"
"github.com/prest/config"
"github.com/prest/config/router"
"github.com/prest/middlewares"
"github.com/prest/prest/adapters/postgres"
"github.com/prest/prest/cmd"
"github.com/prest/prest/config"
"github.com/prest/prest/config/router"
"github.com/prest/prest/middlewares"
"github.com/urfave/negroni"
)

Expand Down
10 changes: 5 additions & 5 deletions docs/prest-as-web-framework/custom-middlewares/disable-jwt.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ import (

jwt "github.com/dgrijalva/jwt-go"
"github.com/gorilla/mux"
"github.com/prest/adapters/postgres"
"github.com/prest/cmd"
"github.com/prest/config"
"github.com/prest/config/router"
"github.com/prest/middlewares"
"github.com/prest/prest/adapters/postgres"
"github.com/prest/prest/cmd"
"github.com/prest/prest/config"
"github.com/prest/prest/config/router"
"github.com/prest/prest/middlewares"
"github.com/urfave/negroni"
)

Expand Down

0 comments on commit 28871ed

Please sign in to comment.