refactor(webapi): move create-room endpoint and deprecate old one

This commit is contained in:
oxalica 2024-10-12 14:12:12 -04:00
parent 920a1cc3b9
commit 1ecea448a2
3 changed files with 13 additions and 7 deletions

View file

@ -263,7 +263,7 @@ impl Server {
);
async move {
Ok(self
.request(Method::POST, "/room/create", None, Some(&req))
.request(Method::POST, "/room", None, Some(&req))
.await?
.unwrap())
}
@ -282,7 +282,7 @@ impl Server {
);
async move {
Ok(self
.request(Method::POST, "/room/create", None, Some(&req))
.request(Method::POST, "/room", None, Some(&req))
.await?
.unwrap())
}