Skip to content

Commit 9f6efb4

Browse files
committed
fixup! fixup! fix(lib/httpapi): redirect based on chatBasePath
1 parent 60b542f commit 9f6efb4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/httpapi/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ func NewServer(ctx context.Context, agentType mf.AgentType, process *termexec.Pr
106106
return s
107107
}
108108

109-
// Router returns the underlying chi.Router for testing purposes.
110-
func (s *Server) Router() http.Handler {
109+
// Handler returns the underlying chi.Router for testing purposes.
110+
func (s *Server) Handler() http.Handler {
111111
return s.router
112112
}
113113

lib/httpapi/server_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func TestServer_redirectToChat(t *testing.T) {
9191
t.Parallel()
9292
tCtx := logctx.WithLogger(context.Background(), slog.New(slog.NewTextHandler(os.Stdout, nil)))
9393
s := httpapi.NewServer(tCtx, msgfmt.AgentTypeClaude, nil, 0, tc.chatBasePath)
94-
tsServer := httptest.NewServer(s.Router())
94+
tsServer := httptest.NewServer(s.Handler())
9595
t.Cleanup(tsServer.Close)
9696

9797
client := &http.Client{

0 commit comments

Comments
 (0)