Skip to content

Commit

Permalink
fix some ktlint wc imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffen Lien committed Dec 9, 2021
1 parent 8110ea0 commit 82aa1e1
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 27 deletions.
13 changes: 10 additions & 3 deletions backend/src/main/kotlin/no/nav/amt_informasjon_api/Application.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,17 @@ import io.ktor.application.Application
import io.ktor.application.ApplicationStopped
import io.ktor.config.HoconApplicationConfig
import io.ktor.routing.routing
import kotlinx.coroutines.launch
import no.nav.amt_informasjon_api.kafka.KafkaFactory
import no.nav.amt_informasjon_api.plugins.*
import no.nav.amt_informasjon_api.routes.*
import no.nav.amt_informasjon_api.plugins.configureHTTP
import no.nav.amt_informasjon_api.plugins.configureMonitoring
import no.nav.amt_informasjon_api.plugins.configureRouting
import no.nav.amt_informasjon_api.plugins.configureSecurity
import no.nav.amt_informasjon_api.plugins.configureSerialization
import no.nav.amt_informasjon_api.routes.devRoutes
import no.nav.amt_informasjon_api.routes.healthRoutes
import no.nav.amt_informasjon_api.routes.innsatsgruppeRoutes
import no.nav.amt_informasjon_api.routes.tiltaksgjennomforingRoutes
import no.nav.amt_informasjon_api.routes.tiltaksvariantRoutes
import no.nav.amt_informasjon_api.services.InnsatsgruppeService
import no.nav.amt_informasjon_api.services.TiltaksgjennomforingService
import no.nav.amt_informasjon_api.services.TiltaksvariantService
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package no.nav.amt_informasjon_api.routes

import io.ktor.application.*
import io.ktor.http.*
import io.ktor.response.*
import io.ktor.routing.*
import io.ktor.application.call
import io.ktor.http.HttpStatusCode
import io.ktor.response.respond
import io.ktor.routing.Route
import io.ktor.routing.get
import io.micrometer.prometheus.PrometheusConfig
import io.micrometer.prometheus.PrometheusMeterRegistry

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
package no.nav.amt_informasjon_api.routes

import io.ktor.application.*
import io.ktor.response.*
import io.ktor.routing.*
import io.ktor.application.call
import io.ktor.response.respond
import io.ktor.routing.Route
import io.ktor.routing.get
import no.nav.amt_informasjon_api.services.InnsatsgruppeService

fun Route.innsatsgruppeRoutes(service: InnsatsgruppeService) {
route("/api/innsatsgrupper") {
get {
call.respond(service.getInnsatsgrupper())
}
get("/api/insatsgrupper") {
call.respond(service.getInnsatsgrupper())
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package no.nav.amt_informasjon_api.routes

import io.ktor.application.*
import io.ktor.http.*
import io.ktor.response.*
import io.ktor.routing.*
import io.ktor.application.call
import io.ktor.http.HttpStatusCode
import io.ktor.response.respond
import io.ktor.response.respondText
import io.ktor.routing.Route
import io.ktor.routing.get
import no.nav.amt_informasjon_api.services.TiltaksgjennomforingService

fun Route.tiltaksgjennomforingRoutes(service: TiltaksgjennomforingService) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
package no.nav.amt_informasjon_api.routes

import io.ktor.application.*
import io.ktor.http.*
import io.ktor.request.*
import io.ktor.response.*
import io.ktor.routing.*
import io.ktor.application.call
import io.ktor.http.HttpStatusCode
import io.ktor.request.receive
import io.ktor.response.respond
import io.ktor.response.respondText
import io.ktor.routing.Route
import io.ktor.routing.delete
import io.ktor.routing.get
import io.ktor.routing.post
import io.ktor.routing.put
import no.nav.amt_informasjon_api.domain.Tiltaksvariant
import no.nav.amt_informasjon_api.services.TiltaksgjennomforingService
import no.nav.amt_informasjon_api.services.TiltaksvariantService
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package no.nav.amt_informasjon_api.routes

import io.ktor.application.*
import io.ktor.http.*
import io.ktor.response.*
import io.ktor.routing.*
import io.ktor.application.call
import io.ktor.http.HttpStatusCode
import io.ktor.response.respondText
import io.ktor.routing.Route
import io.ktor.routing.get
import no.nav.amt_informasjon_api.database.DatabaseFactory

// Kun midlertidig i dev-miljø for å kunne styre migrering og slette DB.
Expand Down

0 comments on commit 82aa1e1

Please sign in to comment.