fix(web): restore sitemap_json helper used by ABI

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-08-28 11:26:01 +08:00
1 parent 323449c2c3
commit 2d51f29199
1 file changed
+5
+5
View File
@@ -136,6 +136,11 @@ pub fn build_robots(sitemap_url: Option<&str>) -> String {
out
}
/// ABI helper returning `{ xml }`.
pub fn sitemap_json(base: &str, items: &Value) -> Value {
json!({ "xml": build_sitemap(base, items) })
}
/// ABI helper returning `{ body }`.
#[allow(dead_code)]
pub fn robots_json(sitemap_url: Option<&str>, body: Option<&str>) -> Value {