Skip to content

Commit

Permalink
Sletter overrideCpa func
Browse files Browse the repository at this point in the history
  • Loading branch information
RettIProd committed Sep 11, 2024
1 parent d0ba36d commit 14f939b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cpa-repo/src/main/kotlin/no/nav/emottak/cpa/Routes.kt
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,6 @@ fun Route.postCpa(cpaRepository: CPARepository) = post("/cpa") {
}
}

fun loadOverrideCPA(): CollaborationProtocolAgreement {
val cpaString = String(object {}::class.java.classLoader.getResource("cpa/nav_qass_30823_modified.xml").readBytes())
return xmlMarshaller.unmarshal(cpaString, CollaborationProtocolAgreement::class.java)
}

fun Route.validateCpa(cpaRepository: CPARepository) = post("/cpa/validate/{$CONTENT_ID}") {
val validateRequest = call.receive(ValidationRequest::class)
try {
Expand Down

0 comments on commit 14f939b

Please sign in to comment.