feat(help-center): expose public sitemap
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user