Skip to content

Commit a034cf8

Browse files
authored
Merge pull request #3247 from edlsh/fix/amp-thread-actors-route
fix(amp): proxy thread actors route
2 parents fb08b92 + 0117174 commit a034cf8

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

internal/api/modules/amp/routes.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ func (m *AmpModule) registerManagementRoutes(engine *gin.Engine, baseHandler *ha
199199
ampAPI.Any("/telemetry/*path", proxyHandler)
200200
ampAPI.Any("/threads", proxyHandler)
201201
ampAPI.Any("/threads/*path", proxyHandler)
202+
ampAPI.Any("/thread-actors", proxyHandler)
202203
ampAPI.Any("/otel", proxyHandler)
203204
ampAPI.Any("/otel/*path", proxyHandler)
204205
ampAPI.Any("/tab", proxyHandler)

internal/api/modules/amp/routes_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ func TestRegisterManagementRoutes(t *testing.T) {
4949
{"/api/meta", http.MethodGet},
5050
{"/api/telemetry", http.MethodGet},
5151
{"/api/threads", http.MethodGet},
52+
{"/api/thread-actors", http.MethodPost},
5253
{"/threads/", http.MethodGet},
5354
{"/threads.rss", http.MethodGet}, // Root-level route (no /api prefix)
5455
{"/api/otel", http.MethodGet},

0 commit comments

Comments
 (0)