-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skiller ut eksern endepunkt i eget spec
* eksterne endepunkter er skilt ut i egen spec. Gjøres for at eksterne brukere skal kunne ta i bruk relevante løsninger uten internt støy. - TB-132
- Loading branch information
Showing
5 changed files
with
39 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
web/src/main/kotlin/no/kartverket/matrikkel/bygning/routes/v1/intern/internRouting.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package no.kartverket.matrikkel.bygning.routes | ||
|
||
import io.ktor.server.routing.Route | ||
import io.github.smiley4.ktorswaggerui.dsl.routing.route | ||
import no.kartverket.matrikkel.bygning.application.bygning.BygningService | ||
import no.kartverket.matrikkel.bygning.application.egenregistrering.EgenregistreringService | ||
import no.kartverket.matrikkel.bygning.routes.v1.intern.bygning.bygningRouting | ||
import no.kartverket.matrikkel.bygning.routes.v1.intern.egenregistrering.egenregistreringRouting | ||
import no.kartverket.matrikkel.bygning.routes.v1.kodeliste.kodelisteRouting | ||
|
||
fun Route.internalRoutingWrapper( | ||
egenregistreringService: EgenregistreringService, | ||
bygningService: BygningService | ||
) { | ||
route("", { | ||
specId = "intern" | ||
}) { | ||
route("kodelister") { | ||
kodelisteRouting() | ||
} | ||
route("egenregistreringer") { | ||
egenregistreringRouting(egenregistreringService) | ||
} | ||
route("bygninger") { | ||
bygningRouting(bygningService) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters