fix(share): correct shared link URL to include /api prefix
The shared link URL was generated as {base_url}/s/{token} but the
API endpoint is actually at /api/s/{token}. This caused 404 errors
when users accessed shared links.
Fixes #101
This commit is contained in:
@@ -1135,6 +1135,6 @@ mod tests {
|
||||
assert_eq!(share_dto.item_id, "test_file_id");
|
||||
assert_eq!(share_dto.item_type, "file");
|
||||
assert!(share_dto.has_password);
|
||||
assert!(share_dto.url.starts_with("http://127.0.0.1:8086/s/"));
|
||||
assert!(share_dto.url.starts_with("http://127.0.0.1:8086/api/s/"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user