mirror of
https://github.com/Blah-IM/blahrs.git
synced 2025-09-13 13:55:24 +00:00
refactor(webapi)!: put all API under path /_blah
This commit is contained in:
parent
ab756f78ab
commit
0c28c00c3d
5 changed files with 34 additions and 28 deletions
|
@ -95,8 +95,9 @@ fn socket_activate() {
|
|||
}
|
||||
|
||||
let resp = rt.block_on(async {
|
||||
let url = format!("http://127.0.0.1:{local_port}/_blah/room?filter=public");
|
||||
let fut = async {
|
||||
reqwest::get(format!("http://127.0.0.1:{local_port}/room?filter=public"))
|
||||
reqwest::get(url)
|
||||
.await
|
||||
.unwrap()
|
||||
.error_for_status()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue