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
199 ampAPI.Any("/telemetry/*path", proxyHandler)199 ampAPI.Any("/telemetry/*path", proxyHandler)
200 ampAPI.Any("/threads", proxyHandler)200 ampAPI.Any("/threads", proxyHandler)
201 ampAPI.Any("/threads/*path", proxyHandler)201 ampAPI.Any("/threads/*path", proxyHandler)
202 ampAPI.Any("/thread-actors", proxyHandler)
202 ampAPI.Any("/otel", proxyHandler)203 ampAPI.Any("/otel", proxyHandler)
203 ampAPI.Any("/otel/*path", proxyHandler)204 ampAPI.Any("/otel/*path", proxyHandler)
204 ampAPI.Any("/tab", proxyHandler)205 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
49 {"/api/meta", http.MethodGet},49 {"/api/meta", http.MethodGet},
50 {"/api/telemetry", http.MethodGet},50 {"/api/telemetry", http.MethodGet},
51 {"/api/threads", http.MethodGet},51 {"/api/threads", http.MethodGet},
52 {"/api/thread-actors", http.MethodPost},
52 {"/threads/", http.MethodGet},53 {"/threads/", http.MethodGet},
53 {"/threads.rss", http.MethodGet}, // Root-level route (no /api prefix)54 {"/threads.rss", http.MethodGet}, // Root-level route (no /api prefix)
54 {"/api/otel", http.MethodGet},55 {"/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