aboutsummaryrefslogtreecommitdiff
path: root/src/post_routes.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/post_routes.rs')
-rw-r--r--src/post_routes.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/post_routes.rs b/src/post_routes.rs
index 0d4631c..311ee57 100644
--- a/src/post_routes.rs
+++ b/src/post_routes.rs
@@ -10,7 +10,6 @@ use sputnik::hyper_body::SputnikBody;
use std::path::Path;
use std::str::from_utf8;
-use crate::build_url_path;
use crate::diff::diff;
use crate::forms::edit_text_form;
use crate::forms::move_form;
@@ -268,7 +267,10 @@ async fn move_entry<C: Controller>(
Ok(Builder::new()
.status(StatusCode::FOUND)
- .header("location", build_url_path(&ctx.branch, &data.dest))
+ .header(
+ "location",
+ controller.build_url_path(&ctx.branch, &data.dest),
+ )
.body("redirecting".into())
.unwrap())
}
@@ -308,7 +310,7 @@ async fn remove_entry<C: Controller>(
.status(StatusCode::FOUND)
.header(
"location",
- build_url_path(&ctx.branch, ctx.path.parent().unwrap().to_str().unwrap()),
+ controller.build_url_path(&ctx.branch, ctx.path.parent().unwrap().to_str().unwrap()),
)
.body("redirecting".into())
.unwrap())