Skip to content

Commit

Permalink
release gotham_middleware_jwt 0.6.1 and gotham_middleware_diesel 0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
msrd0 committed Jul 12, 2021
1 parent 76db23e commit b82c03f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion middleware/diesel/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "gotham_middleware_diesel"
version = "0.3.0"
version = "0.3.1"
authors = ["colinbankier <colinbankier@gmail.com>"]
edition = "2018"
description = "A Gotham Middleware that provides access to a Diesel connection via an R2D2 pool to allow other Middleware and Handlers to interact with a database."
Expand Down
2 changes: 1 addition & 1 deletion middleware/jwt/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "gotham_middleware_jwt"
version = "0.6.0"
version = "0.6.1"
authors = ["Nicholas Young <nyoung@uptime.ventures>",
"Colin Bankier <colinbankier@gmail.com>",
"Isaac Whitfield <iw@whitfin.io>",
Expand Down
4 changes: 2 additions & 2 deletions middleware/jwt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use gotham::{
router::{builder::*, Router},
state::{State, FromState},
};
use gotham_middleware_jwt::{JWTMiddleware, AuthorizationToken};
use gotham_middleware_jwt::{JwtMiddleware, AuthorizationToken};
use gotham::hyper::{Response, StatusCode};

#[derive(Deserialize, Debug)]
Expand All @@ -46,7 +46,7 @@ fn router() -> Router {
let pipelines = new_pipeline_set();
let (pipelines, defaults) = pipelines.add(
new_pipeline()
.add(JWTMiddleware::<Claims>::new("secret".as_ref()))
.add(JwtMiddleware::<Claims>::new("secret".as_ref()))
.build(),
);
let default_chain = (defaults, ());
Expand Down

0 comments on commit b82c03f

Please sign in to comment.