bygger basen for API for henting av alle feilmeldinger fra database til frontend

This commit is contained in:
Markus Johansen 2023-07-20 14:40:34 +02:00
parent 9248607efa
commit 6f22bfd577
5 changed files with 39 additions and 16 deletions

View file

@ -53,6 +53,9 @@ fun configureRouting(): ApplicationEngine = embeddedServer(CIO, applicationEngin
feilmeldingRepository.lagre(feilmelding)
call.respond(status = HttpStatusCode.Created, message = "Feilmelding motatt og sendt til database")
}
get("/api/hentfeil"){
call.respond(status = HttpStatusCode.Created, message = "Prøver å hente feil fra DB")
}
}
}
connector {