Skip to content

Commit 544d2f6

Browse files
author
Sharif Rahaman
committed
Renamed entraConfigs to entraConfigs
1 parent 5b7b170 commit 544d2f6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Project/src/Utils/Utils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,17 +107,17 @@ export const utils = {
107107
resourceEndpoint: 'ACS_RESOURCE_ENDPOINT' // e.g., 'https://contoso.unitedstates.communication.azure.com/'
108108
};
109109
*/
110-
const fetchEntraConfigs = async () => {
110+
const fetchEntraConfig = async () => {
111111
const response = await axios({
112-
url: 'entraConfigs',
112+
url: 'entraConfig',
113113
method: 'GET'
114114
});
115115
if (response.status !== 200) {
116116
throw new Error('Failed to get entra configs');
117117
}
118118
return response.data;
119119
}
120-
const entraCredentialConfig = await fetchEntraConfigs();
120+
const entraCredentialConfig = await fetchEntraConfig();
121121

122122
const tokenCredential = new InteractiveBrowserCredential({
123123
redirectUri: window.location.href, // e.g., 'http://localhost:3000'

Project/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ module.exports = {
213213
res.sendStatus(400);
214214
}
215215
});
216-
devServer.app.get('/entraConfigs', async (req, res) => {
216+
devServer.app.get('/entraConfig', async (req, res) => {
217217
try {
218218
res.setHeader('Content-Type', 'application/json');
219219
res.status(200).json({

0 commit comments

Comments
 (0)