@@ -50,8 +50,6 @@ import no.nav.dagpenger.inntekt.oppslag.OppslagClient
50
50
import no.nav.dagpenger.inntekt.rpc.InntektGrpcServer
51
51
import no.nav.dagpenger.inntekt.subsumsjonbrukt.KafkaSubsumsjonBruktDataConsumer
52
52
import no.nav.dagpenger.inntekt.subsumsjonbrukt.Vaktmester
53
- import no.nav.dagpenger.inntekt.v1.InntektNotAuthorizedException
54
- import no.nav.dagpenger.inntekt.v1.klassifisertInntekt
55
53
import no.nav.dagpenger.inntekt.v1.opptjeningsperiodeApi
56
54
import no.nav.dagpenger.inntekt.v1.spesifisertInntekt
57
55
import no.nav.dagpenger.inntekt.v1.uklassifisertInntekt
@@ -194,16 +192,6 @@ fun Application.inntektApi(
194
192
)
195
193
call.respond(HttpStatusCode .NotFound , problem)
196
194
}
197
- exception<InntektNotAuthorizedException > { cause ->
198
- LOGGER .warn(" Request failed!" , cause)
199
- val problem = Problem (
200
- type = URI (" urn:dp:error:inntekt" ),
201
- title = " AktørId i request stemmer ikke med aktørId på inntekten du spør etter." ,
202
- detail = cause.message,
203
- status = HttpStatusCode .Unauthorized .value
204
- )
205
- call.respond(HttpStatusCode .Unauthorized , problem)
206
- }
207
195
exception<IllegalInntektIdException > { cause ->
208
196
LOGGER .warn(" Request failed!" , cause)
209
197
val problem = Problem (
@@ -285,7 +273,6 @@ fun Application.inntektApi(
285
273
route(" /v1" ) {
286
274
route(" /inntekt" ) {
287
275
spesifisertInntekt(behandlingsInntektsGetter)
288
- klassifisertInntekt(inntektskomponentHttpClient, inntektStore)
289
276
uklassifisertInntekt(inntektskomponentHttpClient, inntektStore, oppslagClient)
290
277
}
291
278
opptjeningsperiodeApi(inntektStore)
0 commit comments