fix(amp): proxy thread actors route
Unified · Split
| @@ -199,6 +199,7 @@ func (m *AmpModule) registerManagementRoutes(engine *gin.Engine, baseHandler *ha · 198 unmodified lines | ||
| 199 | 199 | ampAPI.Any("/telemetry/*path", proxyHandler) |
| 200 | 200 | ampAPI.Any("/threads", proxyHandler) |
| 201 | 201 | ampAPI.Any("/threads/*path", proxyHandler) |
| 202 | + ampAPI.Any("/thread-actors", proxyHandler) | |
| 202 | 203 | ampAPI.Any("/otel", proxyHandler) |
| 203 | 204 | ampAPI.Any("/otel/*path", proxyHandler) |
| 204 | 205 | ampAPI.Any("/tab", proxyHandler) |
| @@ -49,6 +49,7 @@ func TestRegisterManagementRoutes(t *testing.T) { · 48 unmodified lines | ||
| 49 | 49 | {"/api/meta", http.MethodGet}, |
| 50 | 50 | {"/api/telemetry", http.MethodGet}, |
| 51 | 51 | {"/api/threads", http.MethodGet}, |
| 52 | + {"/api/thread-actors", http.MethodPost}, | |
| 52 | 53 | {"/threads/", http.MethodGet}, |
| 53 | 54 | {"/threads.rss", http.MethodGet}, // Root-level route (no /api prefix) |
| 54 | 55 | {"/api/otel", http.MethodGet}, |