Updated URL..
This needs to be a config or CLI flag or smt
This commit is contained in:
+2
-2
@@ -78,7 +78,7 @@ impl REST {
|
|||||||
// enforcing this as the current REST API stack dose not support this.
|
// enforcing this as the current REST API stack dose not support this.
|
||||||
message.stream = false;
|
message.stream = false;
|
||||||
let res = self.client
|
let res = self.client
|
||||||
.post("http://localhost:8080/v1/message/send")
|
.post("http://10.0.1.102:8090/v1/message/send")
|
||||||
.json(&message)
|
.json(&message)
|
||||||
.send()
|
.send()
|
||||||
.await?
|
.await?
|
||||||
@@ -90,7 +90,7 @@ impl REST {
|
|||||||
|
|
||||||
pub async fn init(&mut self) -> Result<Vec<Message>, reqwest::Error> {
|
pub async fn init(&mut self) -> Result<Vec<Message>, reqwest::Error> {
|
||||||
let res = self.client
|
let res = self.client
|
||||||
.get("http://localhost:8080/v1/message/init")
|
.get("http://10.0.1.102:8090/v1/message/init")
|
||||||
.send()
|
.send()
|
||||||
.await?
|
.await?
|
||||||
.error_for_status()?
|
.error_for_status()?
|
||||||
|
|||||||
Reference in New Issue
Block a user