Skip to content

Commit

Permalink
disabler selvbestemt innsending-endepunkt i produksjon (#584)
Browse files Browse the repository at this point in the history
* disabler selvbestemt innsending-endepunkt i produksjon
  • Loading branch information
mortenbyhring authored Jul 1, 2024
1 parent dd4fe73 commit 5503bc9
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import io.ktor.server.routing.routing
import kotlinx.serialization.builtins.serializer
import no.nav.helse.rapids_rivers.RapidApplication
import no.nav.helse.rapids_rivers.RapidsConnection
import no.nav.helsearbeidsgiver.felles.getEnvVar
import no.nav.helsearbeidsgiver.felles.rapidsrivers.registerShutdownLifecycle
import no.nav.helsearbeidsgiver.inntektsmelding.api.aktiveorgnr.aktiveOrgnrRoute
import no.nav.helsearbeidsgiver.inntektsmelding.api.auth.Tilgangskontroll
Expand Down Expand Up @@ -117,7 +118,12 @@ fun Application.apiModule(
inntektSelvbestemtRoute(rapid, tilgangskontroll, redisPoller)
innsendingRoute(rapid, tilgangskontroll, redisPoller)
kvitteringRoute(rapid, tilgangskontroll, redisPoller)
lagreSelvbestemtImRoute(rapid, tilgangskontroll, redisPoller)
if (getEnvVar("NAIS_CLUSTER_NAME", "") != "prod-gcp") {
lagreSelvbestemtImRoute(rapid, tilgangskontroll, redisPoller)
// TODO: Disablet endepunktet i prod -enable når vi kan sende med vedtaksperiodeID fra flex!
} else {
logger.info("Lagreselvbestemt-endepunktet er disablet i produksjon!")
}
hentSelvbestemtImRoute(rapid, tilgangskontroll, redisPoller)
aktiveOrgnrRoute(rapid, redisPoller)
}
Expand Down

0 comments on commit 5503bc9

Please sign in to comment.