File tree 2 files changed +8
-8
lines changed
v3/packages/internarbeidsflate-decorator-v3/src
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export class ContextHolderAPI extends ApiClient {
24
24
code : string ,
25
25
) : Promise < FetchResponse < FnrCodeResponse > > => {
26
26
return this . post < FnrCodeResponse > ( {
27
- path : `/fnr-code/retrieve` ,
27
+ path : `/context/ fnr-code/retrieve` ,
28
28
body : { code } ,
29
29
} ) ;
30
30
} ;
@@ -44,7 +44,7 @@ export class ContextHolderAPI extends ApiClient {
44
44
} ;
45
45
46
46
readonly getEnhet = ( enhetId : string ) : Promise < FetchResponse < Enhet > > => {
47
- return this . get < Enhet > ( { path : `/enhet/${ enhetId } ` } ) ;
47
+ return this . get < Enhet > ( { path : `/context/ enhet/${ enhetId } ` } ) ;
48
48
} ;
49
49
50
50
readonly getVeilederDetails = ( ) : Promise < FetchResponse < Veileder > > => {
@@ -54,12 +54,12 @@ export class ContextHolderAPI extends ApiClient {
54
54
readonly getVeiledersActiveFnr = ( ) : Promise <
55
55
FetchResponse < AktivBrukerResponse >
56
56
> => {
57
- return this . get < AktivBrukerResponse > ( { path : `/v2/aktivbruker` } ) ;
57
+ return this . get < AktivBrukerResponse > ( { path : `/context/ v2/aktivbruker` } ) ;
58
58
} ;
59
59
60
60
readonly getVeiledersActiveEnhet = ( ) : Promise <
61
61
FetchResponse < AktivEnhetResponse >
62
62
> => {
63
- return this . get < AktivEnhetResponse > ( { path : `/v2/aktivenhet` } ) ;
63
+ return this . get < AktivEnhetResponse > ( { path : `/context/ v2/aktivenhet` } ) ;
64
64
} ;
65
65
}
Original file line number Diff line number Diff line change @@ -82,20 +82,20 @@ export const modiaContextHolderUrl = (
82
82
contextHolderProxy ?: string | undefined | null ,
83
83
) : string => {
84
84
if ( contextHolderProxy ) {
85
- return `${ contextHolderProxy } /modiacontextholder/api/context ` ;
85
+ return `${ contextHolderProxy } /modiacontextholder/api` ;
86
86
}
87
87
88
88
switch ( urlFormat ) {
89
89
case 'LOCAL' :
90
- return 'http://localhost:4000/modiacontextholder/api/context ' ;
90
+ return 'http://localhost:4000/modiacontextholder/api' ;
91
91
case 'ADEO' :
92
92
return `https://app${ findEnvString (
93
93
environment ,
94
- ) } .adeo.no/modiacontextholder/api/context `;
94
+ ) } .adeo.no/modiacontextholder/api`;
95
95
case 'NAV_NO' :
96
96
return `https://modiacontextholder${ naisDomain (
97
97
environment ,
98
- ) } /modiacontextholder/api/context `;
98
+ ) } /modiacontextholder/api`;
99
99
}
100
100
} ;
101
101
You can’t perform that action at this time.
0 commit comments