We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5374a9b + b27ff84 commit 332fc55Copy full SHA for 332fc55
1 file changed
todo_web/src/todo_api.rs
@@ -31,7 +31,7 @@ pub async fn toggle_task(id: String) -> Result<AffectedRows, Error> {
31
}
32
33
pub async fn delete_task(id: String) -> Result<AffectedRows, Error> {
34
- Request::delete(&format!("http://localhost:8080/task/{id}"))
+ Request::delete(&format!("{BASE_URL}/task/{id}"))
35
.send()
36
.await
37
.unwrap()
0 commit comments