We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e51f266 commit 0dd3020Copy full SHA for 0dd3020
backend/src/main/kotlin/no/nais/cloud/testnais/sandbox/bachelorurlforkorter/UrlForkorterApi.kt
@@ -32,6 +32,7 @@ fun startAppServer(config: Config) {
32
post("forkort", UrlForkorterController::forkort, Rolle.Alle)
33
get("hentalle", UrlForkorterController::hentAlleMedMetadata, Rolle.Alle)
34
}
35
+ get("/") { ctx -> ctx.redirect("/index.html") }
36
get("{korturl}", UrlForkorterController::redirect, Rolle.Alle)
37
38
// TODO: Kun for lokal utvikling med hot reload
0 commit comments