Allow POST requests for invite tokens
This commit is contained in:
parent
7bf91edbaa
commit
9e2d341751
|
@ -98,6 +98,7 @@ async fn handle(
|
|||
.unwrap()),
|
||||
_ => match (req.method(), req.uri().path()) {
|
||||
(&Method::GET, "/invite") => Ok::<_, Infallible>(generate_invite(context.db)),
|
||||
(&Method::POST, "/invite") => Ok::<_, Infallible>(generate_invite(context.db)),
|
||||
(&Method::GET, "/reachability") => Ok::<_, Infallible>(send_reachability_cred(context.ba)),
|
||||
(&Method::GET, "/pubkeys") => Ok::<_, Infallible>(send_keys(context.ba)),
|
||||
(&Method::POST, "/openreq") => Ok::<_, Infallible>({
|
||||
|
|
Loading…
Reference in New Issue