redirect to my upcoming tournaments

This commit is contained in:
Thibault Duplessis 2020-12-28 09:11:59 +01:00
parent fc4fa17aee
commit 7978da7b64

View file

@ -30,6 +30,10 @@ final class UserTournament(env: Env) extends LilaController(env) {
env.tournament.api.upcomingByPlayerPager(user, page).map { pager =>
Ok(html.userTournament.upcoming(user, pager))
}
case "upcoming" =>
ctx.me.fold(notFound) { me =>
Redirect(routes.UserTournament.path(me.username, "upcoming")).fuccess
}
case _ => notFound
}
}