registerWebSocketRoutes registers WebSocket routes Deprecated: WebSocket routes are now registered in registerRoutes func (s *Server) registerWebSocketRoutes(rg *gin.RouterGroup) { // Create WebSocket handler h := handlers.NewWebSocketHandler(s.store, s.deps.AgentDeps, s.agentRegistry) ws := rg.
(rg *gin.RouterGroup)
| 44 | |
| 45 | // registerMemoryRoutes registers all memory-related routes |
| 46 | func (s *Server) registerMemoryRoutes(rg *gin.RouterGroup) { |
| 47 | // Create memory handler |
| 48 | h := handlers.NewMemoryHandler(s.store) |
| 49 | |
| 50 | memory := rg.Group("/memory") |
| 51 | { |
| 52 | // Working memory |
| 53 | working := memory.Group("/working") |
| 54 | { |
| 55 | working.POST("", h.CreateWorkingMemory) |
| 56 | working.GET("", h.ListWorkingMemory) |
| 57 | working.GET("/:id", h.GetWorkingMemory) |
| 58 | working.PATCH("/:id", h.UpdateWorkingMemory) |
| 59 | working.DELETE("/:id", h.DeleteWorkingMemory) |
| 60 | working.POST("/clear", h.ClearWorkingMemory) |
| 61 | } |
| 62 | |
| 63 | // Semantic memory |
| 64 | semantic := memory.Group("/semantic") |
| 65 | { |
| 66 | semantic.POST("", h.CreateSemanticMemory) |
| 67 | semantic.POST("/search", h.SearchSemanticMemory) |
| 68 | } |
| 69 | |
| 70 | // Provenance |
| 71 | memory.GET("/provenance/:id", h.GetProvenance) |
| 72 | |
| 73 | // Consolidation |
| 74 | memory.POST("/consolidate", h.ConsolidateMemory) |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | // registerSessionRoutes registers all session-related routes |
| 79 | func (s *Server) registerSessionRoutes(rg *gin.RouterGroup) { |
no test coverage detected