diff --git a/addons/api/app/mirage/config.js b/addons/api/app/mirage/config.js index 47bc0b32f..2a4bd28cd 100644 --- a/addons/api/app/mirage/config.js +++ b/addons/api/app/mirage/config.js @@ -211,7 +211,7 @@ function routes() { return metadata; }); - this.get('/grants-schema.json', () => { + this.get('/internal/grants-schema.json', () => { return grantsSchemaData; }); diff --git a/ui/admin/app/routes/scopes/scope/roles/role/edit-grants.js b/ui/admin/app/routes/scopes/scope/roles/role/edit-grants.js index fdd3825fd..65a1d05d4 100644 --- a/ui/admin/app/routes/scopes/scope/roles/role/edit-grants.js +++ b/ui/admin/app/routes/scopes/scope/roles/role/edit-grants.js @@ -51,7 +51,7 @@ export default class ScopesScopeRolesRoleEditGrantsRoute extends Route { @notifyError(({ message }) => message, { catch: true }) async fetchGrantsSchema() { const adapter = this.store.adapterFor('application'); - const url = `${adapter.host ?? ''}/grants-schema.json`; + const url = `${adapter.host ?? ''}/internal/grants-schema.json`; const response = await fetch(url); if (!response.ok) { diff --git a/ui/admin/tests/integration/components/grant-actions/index-test.js b/ui/admin/tests/integration/components/grant-actions/index-test.js index c8e66d8b1..68b4965e7 100644 --- a/ui/admin/tests/integration/components/grant-actions/index-test.js +++ b/ui/admin/tests/integration/components/grant-actions/index-test.js @@ -24,7 +24,7 @@ module('Integration | Component | grant-actions/index', function (hooks) { setupIntl(hooks, 'en-us'); hooks.beforeEach(async function () { - const response = await fetch('/grants-schema.json'); + const response = await fetch('/internal/grants-schema.json'); if (!response.ok) { throw new Error(`Failed to fetch grants schema: ${response.status}`); diff --git a/ui/admin/tests/unit/utils/grant-completions-test.js b/ui/admin/tests/unit/utils/grant-completions-test.js index c9e9f9af3..28b29cd34 100644 --- a/ui/admin/tests/unit/utils/grant-completions-test.js +++ b/ui/admin/tests/unit/utils/grant-completions-test.js @@ -48,7 +48,7 @@ module('Unit | Utils | grant-completions', function (hooks) { this.idLookup = async () => []; this.getIsLoading = () => false; - const response = await fetch('/grants-schema.json'); + const response = await fetch('/internal/grants-schema.json'); if (!response.ok) { throw new Error(`Failed to fetch grants schema: ${response.status}`); diff --git a/ui/admin/tests/unit/utils/grant-linter-test.js b/ui/admin/tests/unit/utils/grant-linter-test.js index b8e758de7..94e662f49 100644 --- a/ui/admin/tests/unit/utils/grant-linter-test.js +++ b/ui/admin/tests/unit/utils/grant-linter-test.js @@ -26,7 +26,7 @@ module('Unit | Utility | grant-linter', function (hooks) { setupIntl(hooks, 'en-us'); hooks.beforeEach(async function () { - const response = await fetch('/grants-schema.json'); + const response = await fetch('/internal/grants-schema.json'); if (!response.ok) { throw new Error(`Failed to fetch grants schema: ${response.status}`);