chore: add StripPrefix to aibridge server handler (#19990)

oops
This commit is contained in:
Dean Sheather
2025-09-27 01:40:42 +10:00
committed by GitHub
parent c2d514356f
commit fc58996bbf
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ func (api *API) aiBridgeListInterceptions(rw http.ResponseWriter, r *http.Reques
if page.Offset != 0 {
httpapi.Write(ctx, rw, http.StatusBadRequest, codersdk.Response{
Message: "Offset pagination is not supported.",
Detail: "Offset pagination is not supported for AIBridge interceptions. Use cursor pagination instead with after_id..",
Detail: "Offset pagination is not supported for AIBridge interceptions. Use cursor pagination instead with after_id.",
})
return
}
+1 -1
View File
@@ -246,7 +246,7 @@ func New(ctx context.Context, options *Options) (_ *API, err error) {
})
return
}
api.aibridgedHandler.ServeHTTP(rw, r)
http.StripPrefix("/api/experimental/aibridge", api.aibridgedHandler).ServeHTTP(rw, r)
})
})
})