Merge pull request #25 from naturalethic/serve-index-on-404

Service index.html on 404 (for SPA)
This commit is contained in:
Jon Kelley authored and GitHub committed 2022-04-02 11:43:25 -04:00
commit e84851bdfb
3 files changed
+57 -18

No files matched your search

+2
View File
@@ -43,6 +43,7 @@ impl Default for DioxusConfig {
watcher: WebWatcherConfing {
watch_path: Some(vec![PathBuf::from("src")]),
reload_html: Some(false),
index_on_404: Some(false),
},
resource: WebResourceConfing {
dev: WebDevResourceConfing {
@@ -82,6 +83,7 @@ pub struct WebAppConfing {
pub struct WebWatcherConfing {
pub watch_path: Option<Vec<PathBuf>>,
pub reload_html: Option<bool>,
pub index_on_404: Option<bool>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]