File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -164,16 +164,11 @@ export async function fetchKeyAccessServers(
164164 const allServers = [ ] ;
165165 do {
166166 const req = await authProvider . withCreds ( {
167- url : `${ platformUrl } /policy.kasregistry.KeyAccessServerRegistryService/ListKeyAccessServers ` ,
168- method : 'POST ' ,
167+ url : `${ platformUrl } /key-access-servers?pagination.offset= ${ nextOffset } ` ,
168+ method : 'GET ' ,
169169 headers : {
170170 'Content-Type' : 'application/json' ,
171171 } ,
172- body : JSON . stringify ( {
173- pagination : {
174- offset : nextOffset ,
175- } ,
176- } ) ,
177172 } ) ;
178173 let response : Response ;
179174 try {
Original file line number Diff line number Diff line change @@ -374,7 +374,8 @@ const kas: RequestListener = async (req, res) => {
374374 res . statusCode = 200 ;
375375 res . end ( 'Server stopped' ) ;
376376 } else if (
377- url . pathname === '/policy.kasregistry.KeyAccessServerRegistryService/ListKeyAccessServers'
377+ url . pathname === '/policy.kasregistry.KeyAccessServerRegistryService/ListKeyAccessServers' ||
378+ url . pathname === '/key-access-servers'
378379 ) {
379380 console . log ( 'Listed Key Access Servers!' ) ;
380381 res . writeHead ( 200 ) ;
You can’t perform that action at this time.
0 commit comments