⚰️ Purger litt unødvendig kode / kommentarer
Co-authored-by: Markus A. R. Johansen <markus.aleksander.rakil.johansen@nav.no>
This commit is contained in:
parent
f1efaa8bce
commit
4da4b95fae
4 changed files with 16 additions and 44 deletions
|
@ -48,13 +48,8 @@ fun configureRouting(): ApplicationEngine = embeddedServer(CIO, applicationEngin
|
|||
get("/api/test") {
|
||||
call.respondText("test")
|
||||
}
|
||||
post("/test") {
|
||||
val test = call.receive<Test>()
|
||||
call.respond(status = HttpStatusCode.Created, message = test)
|
||||
}
|
||||
post("/api/nyfeil") {
|
||||
val feilmelding = call.receive<Feilmelding>()
|
||||
println(feilmelding.tittel)
|
||||
feilmeldingRepository.lagre(feilmelding)
|
||||
call.respond(status = HttpStatusCode.Created, message = "Feilmelding motatt og sendt til database")
|
||||
}
|
||||
|
|
Reference in a new issue