0
0
mirror of https://github.com/neon-mmd/websurfx.git synced 2024-12-22 04:18:21 -05:00

🚸 chore: pass the safe_search_level & upstream_search_engines as a hashmap in the settings view function (#461)

This commit is contained in:
neon_arch 2023-12-28 19:56:11 +03:00
parent b7a23f1826
commit 26aa345f06

View File

@ -69,13 +69,11 @@ pub async fn settings(
) -> Result<HttpResponse, Box<dyn std::error::Error>> {
Ok(HttpResponse::Ok().body(
crate::templates::views::settings::settings(
config.safe_search,
&config.style.colorscheme,
&config.style.theme,
&config.style.animation,
&config
.upstream_search_engines
.keys()
.collect::<Vec<&String>>(),
&config.upstream_search_engines,
)?
.0,
))