Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove residentmobileapp context path as part of the mimoto urls #7

Merged
merged 1 commit into from
Feb 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions inji-web/src/utils/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ export const getESignetRedirectURL = (scope, clientId, codeChallenge, state) =>

/* MIMOTO CONFIG */
export const MIMOTO_URL = process.env.REACT_APP_MIMOTO_URL || "/mimoto";
export const FETCH_ISSUERS_URL = `${MIMOTO_URL}/residentmobileapp/v2/issuers`;
export const getSearchIssuersUrl = (issuer) => `${MIMOTO_URL}/residentmobileapp/v2/issuers?search=${issuer}`;
export const getCredentialsSupportedUrl = (issuerId) => `${MIMOTO_URL}/residentmobileapp/v2/issuers/${issuerId}/credentials-supported`;
export const getFetchAccessTokenFromCodeApi = (issuer) => `${MIMOTO_URL}/residentmobileapp/get-token/${issuer}`;
export const getVcDownloadAPI = (issuerId, credentialId) => `${MIMOTO_URL}/residentmobileapp/v2/issuers/${issuerId}/credentials/${credentialId}/download`;
export const FETCH_ISSUERS_URL = `${MIMOTO_URL}/v2/issuers`;
export const getSearchIssuersUrl = (issuer) => `${MIMOTO_URL}/v2/issuers?search=${issuer}`;
export const getCredentialsSupportedUrl = (issuerId) => `${MIMOTO_URL}/v2/issuers/${issuerId}/credentials-supported`;
export const getFetchAccessTokenFromCodeApi = (issuer) => `${MIMOTO_URL}/get-token/${issuer}`;
export const getVcDownloadAPI = (issuerId, credentialId) => `${MIMOTO_URL}/v2/issuers/${issuerId}/credentials/${credentialId}/download`;

/* MISC */
export const DATA_KEY_IN_LOCAL_STORAGE = "vcDownloadDetails";
Loading