🐛 Sender kommentar ved oppdatering av feil, fikset 404
Co-authored-by: Markus A. R. Johansen <markus.aleksander.rakil.johansen@nav.no>
This commit is contained in:
parent
dabf031091
commit
ebd9e0105b
3 changed files with 5 additions and 4 deletions
|
@ -68,6 +68,7 @@ fun configureRouting(): ApplicationEngine = embeddedServer(CIO, applicationEngin
|
|||
}
|
||||
put("/api/oppdaterfeil") {
|
||||
val oppdatertFeilmelding = call.receive<Feilmelding>()
|
||||
println(oppdatertFeilmelding)
|
||||
feilmeldingRepository.oppdaterFeilmelding(oppdatertFeilmelding)
|
||||
call.respond(status = HttpStatusCode.Created, message = "Feilmelding oppdatert")
|
||||
}
|
||||
|
@ -82,6 +83,4 @@ fun configureRouting(): ApplicationEngine = embeddedServer(CIO, applicationEngin
|
|||
connector {
|
||||
port = 8080
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
})
|
Reference in a new issue