passing in corret params to invite endpoints
removed random '{' that was in the invites::create match arm
This commit is contained in:
parent
996a08f58a
commit
3e91d42f94
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user