👔 Redirect / to /v

This commit is contained in:
Brian Wiborg 2024-05-13 01:15:48 +02:00
parent 48328e7db2
commit 538f640538
No known key found for this signature in database
GPG Key ID: BE53FA9286B719D6

View File

@ -36,8 +36,7 @@ func Serve(bindAddr string) error {
}
func handleIndex(ctx echo.Context) error {
// return ctx.Redirect(http.StatusTemporaryRedirect, "/v")
return ctx.String(200, ctx.Request().Header.Get("X-Remote-User"))
return ctx.Redirect(http.StatusTemporaryRedirect, "/v")
}
func handleNewVoting(ctx echo.Context) error {