Skip to content

Commit

Permalink
Endring for Skjerming frontend
Browse files Browse the repository at this point in the history
#deploy-test-frontend
  • Loading branch information
stigus committed Jan 22, 2024
1 parent 6370444 commit 0be45a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import reactor.util.retry.Retry;

import java.time.Duration;
import java.util.List;
import java.util.concurrent.Callable;

import static org.springframework.http.HttpHeaders.AUTHORIZATION;
Expand All @@ -20,7 +19,7 @@ public class SkjermingsregisterPostCommand implements Callable<Flux<SkjermingDat
private static final String SKJERMINGSREGISTER_URL = "/api/v1/skjerming/dolly";

private final WebClient webClient;
private final SkjermingDataRequest skjermingsDataRequest;
private final SkjermingDataRequest skjermingDataRequest;
private final String token;

@Override
Expand All @@ -30,7 +29,7 @@ public Flux<SkjermingDataResponse> call() {
.path(SKJERMINGSREGISTER_URL)
.build())
.header(AUTHORIZATION, "Bearer " + token)
.bodyValue(skjermingsDataRequest)
.bodyValue(skjermingDataRequest)
.retrieve()
.bodyToFlux(SkjermingDataResponse.class)
.onErrorResume(error -> Flux.just(SkjermingDataResponse.builder()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import Request from '@/service/services/Request'

const skjermingUrl = '/testnav-skjermingsregister-proxy/api/v1/skjermingdata'
const skjermingUrl = '/testnav-skjermingsregister-proxy/api/v1/skjerming/dolly'

export default {
deleteSkjerming(ident: string) {
return Request.delete(`${skjermingUrl}/${ident}`)
return Request.put(skjermingUrl, { personident: ident, skjermetTil: new Date() })
},

getSkjerming(ident: string) {
return Request.get(`${skjermingUrl}/${ident}`)
}
return Request.get(skjermingUrl, { personident: ident })
},
}

0 comments on commit 0be45a8

Please sign in to comment.