feat(help-center): expose public sitemap

This commit is contained in:
2026-06-06 08:26:10 +08:00
parent 8edfcda947
commit efceb22b4c
8 changed files with 92 additions and 8 deletions
+1
View File
@@ -284,6 +284,7 @@ func RegisterRoutes(
helpCenter.Use(middleware.CORS(corsCfg))
{
helpCenter.GET("/:slug", handlers.Portal.PublicRedirectDefaultLocale)
helpCenter.GET("/:slug/sitemap.xml", handlers.Portal.PublicSitemap)
helpCenter.GET("/:slug/articles/:article_slug", handlers.Article.PublicArticle)
helpCenter.GET("/:slug/:locale", handlers.Portal.PublicGet)
helpCenter.GET("/:slug/:locale/search", handlers.Article.PublicSearch)
+1
View File
@@ -37,6 +37,7 @@ func TestRegisterRoutesBootsWithChatwootParityConflictGroups(t *testing.T) {
"GET /api/v1/widget/conversations/toggle_status",
"PUT /public/api/v1/inboxes/:inbox_id/contacts/:contact_id/conversations/:conversation_id/messages/:message_id",
"GET /hc/:slug",
"GET /hc/:slug/sitemap.xml",
"GET /hc/:slug/:locale",
"GET /hc/:slug/:locale/search",
"GET /hc/:slug/:locale/articles.json",