feat(help-center): expose public portal search

This commit is contained in:
2026-06-06 07:59:16 +08:00
parent 5275e6e113
commit d8aa26bcbc
8 changed files with 212 additions and 8 deletions
+1
View File
@@ -285,6 +285,7 @@ func RegisterRoutes(
{
helpCenter.GET("/:slug", handlers.Portal.PublicRedirectDefaultLocale)
helpCenter.GET("/:slug/:locale", handlers.Portal.PublicGet)
helpCenter.GET("/:slug/:locale/search", handlers.Article.PublicSearch)
helpCenter.GET("/:slug/:locale/articles", handlers.Article.PublicList)
helpCenter.GET("/:slug/:locale/articles.json", handlers.Article.PublicList)
helpCenter.GET("/:slug/:locale/categories", handlers.Category.PublicList)
+1
View File
@@ -38,6 +38,7 @@ func TestRegisterRoutesBootsWithChatwootParityConflictGroups(t *testing.T) {
"PUT /public/api/v1/inboxes/:inbox_id/contacts/:contact_id/conversations/:conversation_id/messages/:message_id",
"GET /hc/:slug",
"GET /hc/:slug/:locale",
"GET /hc/:slug/:locale/search",
"GET /hc/:slug/:locale/articles.json",
"GET /hc/:slug/:locale/categories.json",
"GET /hc/:slug/:locale/categories/:category_slug",