⚰️ Purger litt unødvendig kode / kommentarer

Co-authored-by: Markus A. R. Johansen <markus.aleksander.rakil.johansen@nav.no>
This commit is contained in:
Sindre Kjelsrud 2023-07-25 10:52:18 +02:00
parent f1efaa8bce
commit 4da4b95fae
4 changed files with 16 additions and 44 deletions

View file

@ -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")
}