Migrated all resources into the resources' directory.
This commit is contained in:
1 parent
8449cf94ee
commit
eca4820fd2
16 files changed
+3
-7
No files matched your search
+1
-1
@@ -76,7 +76,7 @@ pub async fn web_ui_main(port: u16, enable_template_autoreload: bool) -> std::io
|
||||
let tmpl_reloader = AutoReloader::new(move |notifier| {
|
||||
let mut env: minijinja::Environment<'static> = minijinja::Environment::new();
|
||||
|
||||
let tmpl_path = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("templates");
|
||||
let tmpl_path = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("resources/templates");
|
||||
log::info!("Using template dir {:?}", tmpl_path);
|
||||
|
||||
// if watch_path is never called, no fs watcher is created
|
||||
|
||||
@@ -56,8 +56,6 @@ pub async fn actions_partials(
|
||||
tmpl_env.render(template_location.as_str(), ctx)
|
||||
}
|
||||
|
||||
|
||||
|
||||
#[actix_web::get("/static/{file_name}")]
|
||||
pub async fn static_file(
|
||||
req: HttpRequest
|
||||
@@ -69,8 +67,6 @@ pub async fn static_file(
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#[derive(Deserialize, Debug)]
|
||||
struct Event1{
|
||||
name: String,
|
||||
|
||||
Reference in new issue
Block a user