aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2022-10-14 08:40:36 +0000
committerGitHub <noreply@github.com>2022-10-14 08:40:36 +0000
commit12dbf227628c43e5992212ac12681dd258f731cc (patch)
treef8e41d7b755c6457793f009c300132e2e4d7968b /src/config.rs
parentBump deps (diff)
parentAdd CHANGELOG for clap v4 upgrade (diff)
downloadminiserve-12dbf227628c43e5992212ac12681dd258f731cc.tar.gz
miniserve-12dbf227628c43e5992212ac12681dd258f731cc.zip
Merge pull request #929 from svenstaro/upgrade-clap
Upgrade clap to v4
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/config.rs b/src/config.rs
index 7ca0693..9223dec 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -17,6 +17,7 @@ use crate::{
args::{CliArgs, MediaType},
auth::RequiredAuth,
file_upload::sanitize_path,
+ renderer::ThemeSlug,
};
/// Possible characters for random routes
@@ -61,10 +62,10 @@ pub struct MiniserveConfig {
pub css_route: String,
/// Default color scheme
- pub default_color_scheme: String,
+ pub default_color_scheme: ThemeSlug,
/// Default dark mode color scheme
- pub default_color_scheme_dark: String,
+ pub default_color_scheme_dark: ThemeSlug,
/// The name of a directory index file to serve, like "index.html"
///