✨ bygger basen for API for henting av alle feilmeldinger fra database til frontend
This commit is contained in:
parent
9248607efa
commit
6f22bfd577
5 changed files with 39 additions and 16 deletions
|
@ -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 {
|
||||
|
|
Reference in a new issue