File tree 2 files changed +3
-6
lines changed
2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ struct StaticCompiledAssets;
23
23
24
24
/// HTML template files that will be rendered by `tera`.
25
25
#[ derive( RustEmbed ) ]
26
- #[ folder = "frontend/templates/ " ]
26
+ #[ folder = "frontend/dist " ]
27
27
#[ include = "*.html" ]
28
28
struct TemplateAssets ;
29
29
Original file line number Diff line number Diff line change @@ -616,15 +616,12 @@ async fn handle_fs_path(
616
616
}
617
617
618
618
async fn resolve_template ( path : & str ) -> Vec < u8 > {
619
- TEMPLATES
620
- . get_template ( & format ! ( "pages/{}" , path) )
621
- . await
622
- . unwrap ( )
619
+ TEMPLATES . get_template ( & path) . await . unwrap ( )
623
620
}
624
621
625
622
let relative_path = path. trim_start_matches ( '/' ) ;
626
623
let source = match path {
627
- "" | "/" | "/index.html" => resolve_template ( "graphs.html" ) . await ,
624
+ "" | "/" | "/index.html" | "/graphs.html" => resolve_template ( "graphs.html" ) . await ,
628
625
"/bootstrap.html"
629
626
| "/compare.html"
630
627
| "/dashboard.html"
You can’t perform that action at this time.
0 commit comments