bygger basen for API for henting av alle feilmeldinger fra database til frontend (#13)

This commit is contained in:
Markus A. R. Johansen 2023-07-20 16:01:36 +02:00 committed by GitHub
parent f98dde2b44
commit fc6be8f02c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 39 additions and 16 deletions

View file

@ -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 {