chore: 项目基线(基于 WeKnora 定制版,整理文件忽略规则)

This commit is contained in:
runny committed 2026-11-13 17:54:56 +08:00
commit 9097ee699d
5769 files changed
+1446466

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
package router
import (
"net/http"
"github.com/Tencent/WeKnora/internal/handler"
"github.com/gin-gonic/gin"
)
// RegisterGraphSearchRoutes is a read-only KB content route, even though the
// query is POSTed. Role, API-key capability and exact KB grant are independent.
func RegisterGraphSearchRoutes(r *gin.RouterGroup, h *handler.GraphSearchHandler, g *rbacGuards) {
if h == nil {
return
}
g.apiKeyRoute(r, http.MethodPost, "/knowledge-bases/:id/graph-search",
apiKeyRetrieve(apiKeyFullAccess()), g.Viewer(), g.KBAccessRead("id"), h.Search)
}