From 3e91d42f944339652f525de81831aae5231a4cf2 Mon Sep 17 00:00:00 2001 From: shockrah Date: Mon, 10 Aug 2020 18:02:01 -0700 Subject: [PATCH] passing in corret params to invite endpoints removed random '{' that was in the invites::create match arm --- server/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/main.rs b/server/src/main.rs index ab3407b..568262a 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -46,8 +46,8 @@ async fn route_dispatcher(pool: &Pool, resp: &mut Response, 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,