✨ bygger basen for API for henting av alle feilmeldinger fra database til frontend (#13)
This commit is contained in:
parent
f98dde2b44
commit
fc6be8f02c
5 changed files with 39 additions and 16 deletions
|
@ -56,6 +56,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