registerPoolRoutes registers pool-related routes
(rg *gin.RouterGroup)
| 278 | |
| 279 | // registerPoolRoutes registers pool-related routes |
| 280 | func (s *Server) registerPoolRoutes(rg *gin.RouterGroup) { |
| 281 | h := handlers.NewPoolHandler(s.store, s.deps.AgentDeps) |
| 282 | |
| 283 | pool := rg.Group("/pool") |
| 284 | { |
| 285 | pool.POST("/agents", h.CreateAgent) |
| 286 | pool.GET("/agents", h.ListAgents) |
| 287 | pool.GET("/agents/:id", h.GetAgent) |
| 288 | pool.POST("/agents/:id/resume", h.ResumeAgent) |
| 289 | pool.DELETE("/agents/:id", h.RemoveAgent) |
| 290 | pool.GET("/stats", h.GetStats) |
| 291 | } |
| 292 | } |
| 293 | |
| 294 | // registerRoomRoutes registers room-related routes |
| 295 | func (s *Server) registerRoomRoutes(rg *gin.RouterGroup) { |
no test coverage detected