regroup backend and frontend in app folder
This commit is contained in:
@ -222,7 +222,7 @@ async fn add_process(
|
||||
);
|
||||
|
||||
match client
|
||||
.post(format!("{}/registerService", server_url))
|
||||
.post(format!("{}/api/registerService", server_url))
|
||||
.headers(headers)
|
||||
.json(&request_payload)
|
||||
.send()
|
||||
@ -311,7 +311,7 @@ async fn register_with_server(state: AppState) {
|
||||
|
||||
loop {
|
||||
match client
|
||||
.post(format!("{}/register", server_url))
|
||||
.post(format!("{}/api/register", server_url))
|
||||
.headers(headers.clone())
|
||||
.json(&payload)
|
||||
.send()
|
||||
@ -475,7 +475,7 @@ async fn start_monitor(state: AppState) {
|
||||
let payload = update_request;
|
||||
|
||||
match client
|
||||
.post(format!("{}/updateServiceStatus", server_url ))
|
||||
.post(format!("{}/api/updateServiceStatus", server_url ))
|
||||
.headers(headers.clone())
|
||||
.json(&payload)
|
||||
.send()
|
||||
|
||||
Reference in New Issue
Block a user