feat: 增加简化版json数据
This commit is contained in:
@@ -65,6 +65,7 @@ func main() {
|
||||
{
|
||||
api.GET("/graph", graphHandler.GetGraphData)
|
||||
api.GET("/graph/stats", graphHandler.GetStats)
|
||||
api.GET("/graph/simpleJson", graphHandler.GetSimpleGraphData)
|
||||
|
||||
api.GET("/search", searchHandler.SearchNodes)
|
||||
|
||||
@@ -88,6 +89,7 @@ func main() {
|
||||
log.Println(" GET /health - Health check")
|
||||
log.Println(" GET /api/graph - Get all graph data")
|
||||
log.Println(" GET /api/graph/stats - Get graph statistics")
|
||||
log.Println(" GET /api/graph/simpleJson - Get simplified graph data (for LLM)")
|
||||
log.Println(" GET /api/search?q=query - Search nodes")
|
||||
log.Println(" GET /api/nodes/:id - Get node by ID")
|
||||
log.Println(" GET /api/nodes/:id/neighbors - Get node neighbors")
|
||||
|
||||
Reference in New Issue
Block a user