Skip to content

Commit 3c23a44

Browse files
committed
refactor(common): When including static files write the path as relative ./x/x
Signed-off-by: PrajwalCH <[email protected]>
1 parent 3a87868 commit 3c23a44

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/common.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ use std::fs::DirEntry;
33
use std::io;
44
use std::path::Path;
55

6-
pub const PAGE_TEMPLATE: &str = include_str!("static/template.html");
7-
pub const FILE_ICON: &str = include_str!("static/file.svg");
8-
pub const DIR_ICON: &str = include_str!("static/folder.svg");
6+
pub const PAGE_TEMPLATE: &str = include_str!("./static/template.html");
7+
pub const FILE_ICON: &str = include_str!("./static/file.svg");
8+
pub const DIR_ICON: &str = include_str!("./static/folder.svg");
99

1010
pub fn build_not_found_page() -> String {
1111
PAGE_TEMPLATE.replace("{title}", "Error Response").replace(

0 commit comments

Comments
 (0)