Skip to content

Commit

Permalink
runfix: remove hardcoded directory path (#5881)
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrykBuniX authored Jan 19, 2024
1 parent 71eefe7 commit cbdc00d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export class AcmeService {
private logger = logdown('@wireapp/core/AcmeService');
private readonly axiosInstance: AxiosInstance = axios.create();
private readonly url = {
DIRECTORY: '/directory',
ROOTS: '/roots.pem',
};

Expand Down Expand Up @@ -112,7 +111,7 @@ export class AcmeService {

public async getDirectory(): GetDirectoryReturnValue {
try {
const {data} = await this.axiosInstance.get(`${this.discoveryUrl}${this.url.DIRECTORY}`);
const {data} = await this.axiosInstance.get(this.discoveryUrl);
const directory = DirectoryResponseSchema.parse(data);
return new TextEncoder().encode(JSON.stringify(directory));
} catch (e) {
Expand Down

0 comments on commit cbdc00d

Please sign in to comment.