Adding hook for getting jwt from login

Also missed a lazy_static removal in db-lib
This commit is contained in:
shockrah 2020-12-28 21:57:47 -08:00
parent 2ad0136e69
commit 9d01912670
2 changed files with 1 additions and 3 deletions

View File

@ -1,5 +1,3 @@
#[macro_use] extern crate lazy_static;
extern crate serde;
pub mod member;
pub mod common;

View File

@ -51,7 +51,7 @@ async fn route_dispatcher(pool: &Pool, resp: &mut Response<Body>, meth: &Method,
const DELETE: &Method = &Method::DELETE;
match (meth, path) {
/* 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 */
(GET, routes::INVITE_CREATE) => invites::create(pool, resp, params).await,
(GET, routes::INVITE_JOIN) => invites::join(pool, resp, params).await,