Adding hook for getting jwt from login
Also missed a lazy_static removal in db-lib
This commit is contained in:
parent
2ad0136e69
commit
9d01912670
@ -1,5 +1,3 @@
|
|||||||
#[macro_use] extern crate lazy_static;
|
|
||||||
|
|
||||||
extern crate serde;
|
extern crate serde;
|
||||||
pub mod member;
|
pub mod member;
|
||||||
pub mod common;
|
pub mod common;
|
||||||
|
@ -51,7 +51,7 @@ async fn route_dispatcher(pool: &Pool, resp: &mut Response<Body>, meth: &Method,
|
|||||||
const DELETE: &Method = &Method::DELETE;
|
const DELETE: &Method = &Method::DELETE;
|
||||||
match (meth, path) {
|
match (meth, path) {
|
||||||
/* AUTHENTICATION */
|
/* AUTHENTICATION */
|
||||||
(POST, routes::AUTH_LOGIN) => auth::login_get_jwt(resp, params).await,
|
(POST, routes::AUTH_LOGIN) => auth::login_get_jwt(pool, resp, params).await,
|
||||||
/* INVITES */
|
/* INVITES */
|
||||||
(GET, routes::INVITE_CREATE) => invites::create(pool, resp, params).await,
|
(GET, routes::INVITE_CREATE) => invites::create(pool, resp, params).await,
|
||||||
(GET, routes::INVITE_JOIN) => invites::join(pool, resp, params).await,
|
(GET, routes::INVITE_JOIN) => invites::join(pool, resp, params).await,
|
||||||
|
Loading…
Reference in New Issue
Block a user