Spaces:
Runtime error
Runtime error
neon_arch
commited on
Commit
β’
d894370
1
Parent(s):
93afb6b
π¨ chore: make cargo format checks happy (#461)
Browse files- src/server/router.rs +11 -11
src/server/router.rs
CHANGED
@@ -72,15 +72,15 @@ pub async fn settings(
|
|
72 |
config: web::Data<Config>,
|
73 |
) -> Result<HttpResponse, Box<dyn std::error::Error>> {
|
74 |
Ok(HttpResponse::Ok()
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
}
|
|
|
72 |
config: web::Data<Config>,
|
73 |
) -> Result<HttpResponse, Box<dyn std::error::Error>> {
|
74 |
Ok(HttpResponse::Ok()
|
75 |
+
.content_type("text/html; charset=utf-8")
|
76 |
+
.body(
|
77 |
+
crate::templates::views::settings::settings(
|
78 |
+
config.safe_search,
|
79 |
+
&config.style.colorscheme,
|
80 |
+
&config.style.theme,
|
81 |
+
&config.style.animation,
|
82 |
+
&config.upstream_search_engines,
|
83 |
+
)?
|
84 |
+
.0,
|
85 |
+
))
|
86 |
}
|