diff options
author | Joris | 2024-06-10 08:55:25 +0200 |
---|---|---|
committer | Joris | 2024-06-10 08:55:25 +0200 |
commit | 9e48c2bd8b4a3fdd73b2fc51afec14180b4b0dcf (patch) | |
tree | 6ffe8ca2369bca3c77e09e05abc2046923ca4b91 /src/templates.rs | |
parent | c1c24146266a1e35748421c1afba10b24794af26 (diff) |
Use easier path to facilitate matching on routes
Diffstat (limited to 'src/templates.rs')
-rw-r--r-- | src/templates.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/templates.rs b/src/templates.rs index b551bf6..9fd2162 100644 --- a/src/templates.rs +++ b/src/templates.rs @@ -109,7 +109,7 @@ pub const INTERNAL_SERVER_ERROR: &str = const_format::concatcp!( ); pub fn file_page(file: File) -> String { - let href = format!("{}/download", file.id); + let href = format!("/share/{}/download", file.id); let expiration = file.expires_at.signed_duration_since(Local::now()); format!( |