This commit is contained in:
Mateusz Gruszczyński committed 2026-10-05 09:30:21 +02:00
1 parent 1dea7f55c8
commit c819f0a335
151 files changed
+7610 -4264

No files matched your search

+11 -7
View File
@@ -36,7 +36,8 @@ fn admin_app_javascript() -> &'static str {
include_str!("web/app/config-history.js"),
include_str!("web/app/runtime.js"),
include_str!("web/app/settings.js"),
].join("\n")
]
.join("\n")
});
ASSET.as_str()
}
@@ -49,7 +50,8 @@ fn admin_vhosts_javascript() -> &'static str {
include_str!("web/vhosts/editor.js"),
include_str!("web/vhosts/render.js"),
"})();",
].join("\n")
]
.join("\n")
});
ASSET.as_str()
}
@@ -449,9 +451,11 @@ fn certificate_api_operation(method: &Method, path: &str) -> bool {
if method != Method::POST {
return false;
}
matches!(path, "/api/certificates/deploy" | "/api/certificates/reload")
|| path
.strip_prefix("/api/certificates/")
.and_then(|tail| tail.strip_suffix("/reload"))
.is_some_and(crate::config::valid_id)
matches!(
path,
"/api/certificates/deploy" | "/api/certificates/reload"
) || path
.strip_prefix("/api/certificates/")
.and_then(|tail| tail.strip_suffix("/reload"))
.is_some_and(crate::config::valid_id)
}