Skip to content

Commit

Permalink
Rettet feil i endepunkt for "/query/antall", slik at det nå er tilgje…
Browse files Browse the repository at this point in the history
…ngelig i frontend.
  • Loading branch information
baskevold committed Jun 10, 2024
1 parent 12c3443 commit 0be65fc
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
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.*
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<RequestContextService>()
Expand All @@ -35,7 +32,7 @@ fun Route.OppgaveQueryApis() {
@Location("/query/antall")
class queryOppgaveAntall

post { _: queryOppgave ->
post { _: queryOppgaveAntall ->
val oppgaveQuery = call.receive<OppgaveQuery>()
requestContextService.withRequestContext(call) {
call.respond(oppgaveQueryService.queryForAntall(oppgaveQuery))
Expand Down

0 comments on commit 0be65fc

Please sign in to comment.