From c870c021b5e060098ae273ac3a1e2f2f978c78ad Mon Sep 17 00:00:00 2001 From: alexandraback Date: Fri, 8 Nov 2019 10:28:30 +0100 Subject: [PATCH] KAIZEN-0: Legg til database --- src/main/kotlin/no/nav/pto/veilarbfilter/HttpHandler.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/no/nav/pto/veilarbfilter/HttpHandler.kt b/src/main/kotlin/no/nav/pto/veilarbfilter/HttpHandler.kt index f5e28b51..e597b787 100644 --- a/src/main/kotlin/no/nav/pto/veilarbfilter/HttpHandler.kt +++ b/src/main/kotlin/no/nav/pto/veilarbfilter/HttpHandler.kt @@ -14,6 +14,7 @@ import io.ktor.server.engine.ApplicationEngine import io.ktor.server.engine.embeddedServer import io.ktor.server.netty.Netty import no.nav.pto.veilarbfilter.config.Configuration +import no.nav.pto.veilarbfilter.config.Database import no.nav.pto.veilarbfilter.routes.naisRoutes import no.nav.pto.veilarbfilter.routes.veilarbfilterRoutes import no.nav.pto.veilarbfilter.service.EnhetFilterServiceImpl @@ -40,7 +41,7 @@ fun createHttpServer(applicationState: ApplicationState, register(ContentType.Application.Json, JacksonConverter(ObjectMapperProvider.objectMapper)) } - //val database = Database(configuration); + val database = Database(configuration); routing { route("veilarbfilter") {