History

Merge pull request #3247 from edlsh/fix/amp-thread-actors-route

fix(amp): proxy thread actors route

Luis Pater committed 6 months ago

Commit a034cf82 parents fb08b92 01171742 files · +2 −0Browse files

Unified · Split

2 files
  1. internal/api/modules/amp/routes.go +1 −0
  2. internal/api/modules/amp/routes_test.go +1 −0
internal/api/modules/amp/routes.go+1−0
@@ -199,6 +199,7 @@ func (m *AmpModule) registerManagementRoutes(engine *gin.Engine, baseHandler *ha · 198 unmodified lines
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+1−0
@@ -49,6 +49,7 @@ func TestRegisterManagementRoutes(t *testing.T) { · 48 unmodified lines
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},

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t