@@ -19,26 +19,32 @@ export const KlageBehandlingApiKeys = {
19
19
} ;
20
20
21
21
const endpoints = new RestApiConfigBuilder ( )
22
- . withAsyncPost ( '/fpsak/api/behandlinger' , KlageBehandlingApiKeys . BEHANDLING_KLAGE , { fetchLinkDataAutomatically : false } )
22
+ . withAsyncPost ( '/sak/api/behandlinger' , KlageBehandlingApiKeys . BEHANDLING_KLAGE , {
23
+ fetchLinkDataAutomatically : false ,
24
+ } )
23
25
. withInjectedPath ( 'aksjonspunkter' , KlageBehandlingApiKeys . AKSJONSPUNKTER )
24
26
. withInjectedPath ( 'vilkar' , KlageBehandlingApiKeys . VILKAR )
25
27
. withInjectedPath ( 'klage-vurdering' , KlageBehandlingApiKeys . KLAGE_VURDERING )
26
28
27
- . withPost ( '/fpsak /api/behandlinger/bytt-enhet' , KlageBehandlingApiKeys . BEHANDLING_NY_BEHANDLENDE_ENHET )
28
- . withPost ( '/fpsak /api/behandlinger/henlegg' , KlageBehandlingApiKeys . HENLEGG_BEHANDLING )
29
- . withAsyncPost ( '/fpsak /api/behandlinger/gjenoppta' , KlageBehandlingApiKeys . RESUME_BEHANDLING , {
29
+ . withPost ( '/sak /api/behandlinger/bytt-enhet' , KlageBehandlingApiKeys . BEHANDLING_NY_BEHANDLENDE_ENHET )
30
+ . withPost ( '/sak /api/behandlinger/henlegg' , KlageBehandlingApiKeys . HENLEGG_BEHANDLING )
31
+ . withAsyncPost ( '/sak /api/behandlinger/gjenoppta' , KlageBehandlingApiKeys . RESUME_BEHANDLING , {
30
32
storeResultKey : KlageBehandlingApiKeys . BEHANDLING_KLAGE ,
31
33
} )
32
- . withPost ( '/fpsak /api/behandlinger/sett-pa-vent' , KlageBehandlingApiKeys . BEHANDLING_ON_HOLD )
34
+ . withPost ( '/sak /api/behandlinger/sett-pa-vent' , KlageBehandlingApiKeys . BEHANDLING_ON_HOLD )
33
35
34
- . withPost ( '/fpsak/api/behandlinger/endre-pa-vent' , KlageBehandlingApiKeys . UPDATE_ON_HOLD )
35
- . withAsyncPost ( '/fpsak/api/behandling/aksjonspunkt' , KlageBehandlingApiKeys . SAVE_AKSJONSPUNKT , {
36
- storeResultKey : KlageBehandlingApiKeys . BEHANDLING_KLAGE ,
37
- } )
38
- . withAsyncPost ( '/fpsak/api/behandling/klage/mellomlagre-klage' , KlageBehandlingApiKeys . SAVE_KLAGE_VURDERING )
39
- . withAsyncPost ( '/fpsak/api/behandling/klage/mellomlagre-gjennapne-klage' , KlageBehandlingApiKeys . SAVE_REOPEN_KLAGE_VURDERING , {
36
+ . withPost ( '/sak/api/behandlinger/endre-pa-vent' , KlageBehandlingApiKeys . UPDATE_ON_HOLD )
37
+ . withAsyncPost ( '/sak/api/behandling/aksjonspunkt' , KlageBehandlingApiKeys . SAVE_AKSJONSPUNKT , {
40
38
storeResultKey : KlageBehandlingApiKeys . BEHANDLING_KLAGE ,
41
39
} )
40
+ . withAsyncPost ( '/sak/api/behandling/klage/mellomlagre-klage' , KlageBehandlingApiKeys . SAVE_KLAGE_VURDERING )
41
+ . withAsyncPost (
42
+ '/sak/api/behandling/klage/mellomlagre-gjennapne-klage' ,
43
+ KlageBehandlingApiKeys . SAVE_REOPEN_KLAGE_VURDERING ,
44
+ {
45
+ storeResultKey : KlageBehandlingApiKeys . BEHANDLING_KLAGE ,
46
+ } ,
47
+ )
42
48
43
49
/* fpformidling */
44
50
. withPostAndOpenBlob ( '/fpformidling/api/brev/forhaandsvis' , KlageBehandlingApiKeys . PREVIEW_MESSAGE )
@@ -47,9 +53,11 @@ const endpoints = new RestApiConfigBuilder()
47
53
const reducerName = 'dataContextKlageBehandling' ;
48
54
49
55
export const reduxRestApi = new ReduxRestApiBuilder ( endpoints , reducerName )
50
- . withReduxEvents ( new ReduxEvents ( )
51
- . withErrorActionCreator ( errorHandler . getErrorActionCreator ( ) )
52
- . withPollingMessageActionCreator ( setRequestPollingMessage ) )
56
+ . withReduxEvents (
57
+ new ReduxEvents ( )
58
+ . withErrorActionCreator ( errorHandler . getErrorActionCreator ( ) )
59
+ . withPollingMessageActionCreator ( setRequestPollingMessage ) ,
60
+ )
53
61
. build ( ) ;
54
62
55
63
reducerRegistry . register ( reducerName , reduxRestApi . getDataReducer ( ) ) ;
0 commit comments