passing in corret params to invite endpoints

removed random '{' that was in the invites::create match arm
This commit is contained in:
shockrah 2020-08-10 18:02:01 -07:00
parent 996a08f58a
commit 3e91d42f94

View File

@ -46,8 +46,8 @@ async fn route_dispatcher(pool: &Pool, resp: &mut Response<Body>, meth: &Method,
use routes::resolve_dynamic_route;
match (meth, path) {
/* INVITES */
(&Method::GET, routes::INVITE_JOIN) => invites::route_join_invite_code(pool, resp, params).await,
(&Method::GET, routes::INVITE_CREATE) => { invites::create(pool, resp).await,
(&Method::GET, routes::INVITE_JOIN) => invites::join(pool, resp, params).await,
(&Method::GET, routes::INVITE_CREATE) => invites::create(pool, resp, params).await,
/* CHANNELS */
(&Method::GET, routes::CHANNELS_LIST) => channels::list_channels(pool, resp).await,
(&Method::POST, routes::CHANNELS_CREATE) => channels::create_channel(pool, resp, params).await,