diff --git a/src/api/featureAPI.ts b/src/api/featureAPI.ts index 49f08d2e4..9e044b4cd 100644 --- a/src/api/featureAPI.ts +++ b/src/api/featureAPI.ts @@ -1,7 +1,7 @@ -import { VEILARBPERSONFLATE_BASE_URL } from '../environment'; +import { AKTIVITET_BASE_URL } from '../environment'; import { Features, toggles } from '../moduler/feature/feature'; import { fetchToJson } from './utils'; export function hentFeatures(): Promise { - return fetchToJson(`${VEILARBPERSONFLATE_BASE_URL}/feature?${toggles}`); + return fetchToJson(`${AKTIVITET_BASE_URL}/feature?${toggles}`); } diff --git a/src/environment.ts b/src/environment.ts index 4262a96b8..6a7d1c11e 100644 --- a/src/environment.ts +++ b/src/environment.ts @@ -22,4 +22,3 @@ export const VEILARBLEST_BASE_URL = stripPrependingSlash(BASE_URL) + '/veilarble export const PERSON_BASE_URL = stripPrependingSlash(BASE_URL) + '/veilarbperson/api'; export const MALVERK_BASE_URL = stripPrependingSlash(BASE_URL) + '/veilarbmalverk/api'; export const VEILEDER_BASE_URL = stripPrependingSlash(BASE_URL) + '/veilarbveileder/api'; -export const VEILARBPERSONFLATE_BASE_URL = stripPrependingSlash(BASE_URL) + '/veilarbpersonflatefs/api'; diff --git a/src/mocks/handlers.ts b/src/mocks/handlers.ts index 805ce80db..728dbab12 100644 --- a/src/mocks/handlers.ts +++ b/src/mocks/handlers.ts @@ -136,6 +136,7 @@ export const handlers = [ '/veilarbaktivitet/api/stillingFraNav/soknadStatus', failOrGetResponse(aktivitetFeilet, oppdaterStillingFraNavSoknadsstatus) ), + rest.get('/veilarbaktivitet/api/feature', jsonResponse(features)), // veilarblest rest.get('/veilarblest/api/aktivitetsplan/les', jsonResponse(lest)), @@ -154,7 +155,4 @@ export const handlers = [ // veilarbmalverk rest.post('/veilarbmalverk/api/mal', jsonResponse(hentMalverkMedType)), - - // veilarbpersonflatefs - rest.get('/veilarbpersonflatefs/api/feature', jsonResponse(features)), ];