Skip to content

Commit

Permalink
get til body (#6552)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebassonav authored Dec 4, 2024
1 parent fe9cabb commit 7f12dcd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ fun Route.samordningVedtakRoute(
call.respond(samordningVedtakDtos)
}

get {
post {
val fomDato =
call.dato("fomDato")
?: call.dato("virkFom")
Expand All @@ -160,7 +160,7 @@ fun Route.samordningVedtakRoute(
context = PensjonContext,
)
} catch (e: IllegalArgumentException) {
return@get call.respondNullable(HttpStatusCode.BadRequest, e.message)
return@post call.respondNullable(HttpStatusCode.BadRequest, e.message)
}

call.respond(samordningVedtakDtos)
Expand Down

0 comments on commit 7f12dcd

Please sign in to comment.