@@ -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
@@ -195,16 +193,6 @@ fun Application.inntektApi(
195
193
)
196
194
call.respond(HttpStatusCode .NotFound , problem)
197
195
}
198
- exception<InntektNotAuthorizedException > { cause ->
199
- LOGGER .warn(" Request failed!" , cause)
200
- val problem = Problem (
201
- type = URI (" urn:dp:error:inntekt" ),
202
- title = " AktørId i request stemmer ikke med aktørId på inntekten du spør etter." ,
203
- detail = cause.message,
204
- status = HttpStatusCode .Unauthorized .value
205
- )
206
- call.respond(HttpStatusCode .Unauthorized , problem)
207
- }
208
196
exception<IllegalInntektIdException > { cause ->
209
197
LOGGER .warn(" Request failed!" , cause)
210
198
val problem = Problem (
@@ -286,7 +274,6 @@ fun Application.inntektApi(
286
274
route(" /v1" ) {
287
275
route(" /inntekt" ) {
288
276
spesifisertInntekt(behandlingsInntektsGetter)
289
- klassifisertInntekt(inntektskomponentHttpClient, inntektStore)
290
277
uklassifisertInntekt(inntektskomponentHttpClient, inntektStore, oppslagClient)
291
278
}
292
279
opptjeningsperiodeApi(inntektStore)
0 commit comments