aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2022-10-06 08:16:15 +0000
committerSven-Hendrik Haase <svenstaro@gmail.com>2022-10-12 20:05:15 +0000
commit978038a16ee576014c2946b99d28a665e9714bc4 (patch)
treeeb1f4968c28f55094ecc7b4b80e1c5c3cc13f2e4 /src/config.rs
parentBump deps (diff)
downloadminiserve-978038a16ee576014c2946b99d28a665e9714bc4.tar.gz
miniserve-978038a16ee576014c2946b99d28a665e9714bc4.zip
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"
///