registerOperations wires every ported Huma operation. As resources move off the legacy mux they are added here and removed from the legacy RegisterRoutes in the same commit.
()
| 359 | // off the legacy mux they are added here and removed from the legacy |
| 360 | // RegisterRoutes in the same commit. |
| 361 | func (s *Server) registerOperations() { |
| 362 | s.registerInfo() |
| 363 | s.registerAgents() |
| 364 | s.registerMessages() |
| 365 | s.registerAttachments() |
| 366 | s.registerConversations() |
| 367 | s.registerAgentWrites() |
| 368 | s.registerAgentProtection() |
| 369 | s.registerDomains() |
| 370 | s.registerWebhooks() |
| 371 | s.registerEvents() |
| 372 | s.registerAccount() |
| 373 | s.registerAPIKeys() |
| 374 | s.registerOutbound() |
| 375 | s.registerHITL() |
| 376 | s.registerReviews() |
| 377 | } |
| 378 | |
| 379 | // reqCtxKey carries the raw *http.Request through to Huma handlers so they |
| 380 | // can reuse the injected Authenticator (which reads headers + cookies). |
no test coverage detected