From 0be65fc24f28ac3bc33678cae055553c1b0a5657 Mon Sep 17 00:00:00 2001 From: Bjornar Askevold Date: Mon, 10 Jun 2024 15:29:49 +0200 Subject: [PATCH] =?UTF-8?q?Rettet=20feil=20i=20endepunkt=20for=20"/query/a?= =?UTF-8?q?ntall",=20slik=20at=20det=20n=C3=A5=20er=20tilgjengelig=20i=20f?= =?UTF-8?q?rontend.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nav/k9/los/nyoppgavestyring/query/OppgaveQueryApis.kt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/kotlin/no/nav/k9/los/nyoppgavestyring/query/OppgaveQueryApis.kt b/src/main/kotlin/no/nav/k9/los/nyoppgavestyring/query/OppgaveQueryApis.kt index 5a1e8f190..6141c7cfd 100644 --- a/src/main/kotlin/no/nav/k9/los/nyoppgavestyring/query/OppgaveQueryApis.kt +++ b/src/main/kotlin/no/nav/k9/los/nyoppgavestyring/query/OppgaveQueryApis.kt @@ -1,7 +1,7 @@ package no.nav.k9.los.nyoppgavestyring.query import io.ktor.http.* -import io.ktor.server.application.call +import io.ktor.server.application.* import io.ktor.server.locations.* import io.ktor.server.request.* import io.ktor.server.response.* @@ -9,12 +9,9 @@ import io.ktor.server.routing.Route import no.nav.k9.los.integrasjon.abac.IPepClient import no.nav.k9.los.integrasjon.rest.RequestContextService import no.nav.k9.los.integrasjon.rest.idToken -import no.nav.k9.los.nyoppgavestyring.query.db.OppgaveQueryRepository import no.nav.k9.los.nyoppgavestyring.query.dto.query.OppgaveQuery -import no.nav.k9.los.tjenester.avdelingsleder.nokkeltall.tilCsv import org.koin.java.KoinJavaComponent import org.koin.ktor.ext.inject -import java.util.* fun Route.OppgaveQueryApis() { val requestContextService by inject() @@ -35,7 +32,7 @@ fun Route.OppgaveQueryApis() { @Location("/query/antall") class queryOppgaveAntall - post { _: queryOppgave -> + post { _: queryOppgaveAntall -> val oppgaveQuery = call.receive() requestContextService.withRequestContext(call) { call.respond(oppgaveQueryService.queryForAntall(oppgaveQuery))