mirror of
https://github.com/Blah-IM/blahrs.git
synced 2025-07-12 00:55:33 +00:00
refactor(webapi): move create-room endpoint and deprecate old one
This commit is contained in:
parent
920a1cc3b9
commit
1ecea448a2
3 changed files with 13 additions and 7 deletions
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue