Skip to content

Commit 0dd3020

Browse files
committed
Redirect til index.html
1 parent e51f266 commit 0dd3020

File tree

1 file changed

+1
-0
lines changed
  • backend/src/main/kotlin/no/nais/cloud/testnais/sandbox/bachelorurlforkorter

1 file changed

+1
-0
lines changed

backend/src/main/kotlin/no/nais/cloud/testnais/sandbox/bachelorurlforkorter/UrlForkorterApi.kt

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ fun startAppServer(config: Config) {
3232
post("forkort", UrlForkorterController::forkort, Rolle.Alle)
3333
get("hentalle", UrlForkorterController::hentAlleMedMetadata, Rolle.Alle)
3434
}
35+
get("/") { ctx -> ctx.redirect("/index.html") }
3536
get("{korturl}", UrlForkorterController::redirect, Rolle.Alle)
3637
}
3738
// TODO: Kun for lokal utvikling med hot reload

0 commit comments

Comments
 (0)