X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=lib%2Fagent%2Fapiv1.go;h=3fd999059c3f665631df89fb224eb91aff1976af;hb=be13167b869161b6e19dc3e94835245cdc7911e5;hp=77b05baeaa966ebbb8c10d7d5c0912c9b22a4fd7;hpb=459f46bc410c8641314d5f3eb39c871558b7d156;p=src%2Fxds%2Fxds-agent.git diff --git a/lib/agent/apiv1.go b/lib/agent/apiv1.go index 77b05ba..3fd9990 100644 --- a/lib/agent/apiv1.go +++ b/lib/agent/apiv1.go @@ -95,8 +95,9 @@ func (s *APIService) AddXdsServer(cfg xdsconfig.XDSServerConf) (*XdsServer, erro // Passthrough routes (handle by XDS Server) grp := s.apiRouter.Group(svr.PartialURL) svr.SetAPIRouterGroup(grp) - svr.PassthroughGet("/sdks") - svr.PassthroughGet("/sdk/:id") + + // Declare passthrough routes + s.sdksPassthroughInit(svr) } // Established connection