webadmin: add single-line form for looking up a cid for a received id

This commit is contained in:
Mechiel Lukkien
2024-03-05 10:50:56 +01:00
parent 5738d9e7b8
commit a9cb6f9d0a
5 changed files with 94 additions and 1 deletions

View File

@ -1535,6 +1535,15 @@ export class Client {
const params: any[] = [id, until]
return await _sherpaCall(this.baseURL, this.authState, { ...this.options }, paramTypes, returnTypes, fn, params) as void
}
// LookupCid turns an ID from a Received header into a cid as used in logging.
async LookupCid(recvID: string): Promise<string> {
const fn: string = "LookupCid"
const paramTypes: string[][] = [["string"]]
const returnTypes: string[][] = [["string"]]
const params: any[] = [recvID]
return await _sherpaCall(this.baseURL, this.authState, { ...this.options }, paramTypes, returnTypes, fn, params) as string
}
}
export const defaultBaseURL = (function() {