remove round table routes and actions
parent
5657269192
commit
2f3f6f7d1c
|
@ -99,22 +99,6 @@ object Round extends LilaController with TheftPrevention {
|
|||
pov, data, opponent, Env.setup.friendConfigMemo get pov.game.id, fen))
|
||||
}
|
||||
|
||||
def tableWatcher(gameId: String, color: String) = Open { implicit ctx =>
|
||||
OptionOk(GameRepo.pov(gameId, color)) { html.round.table.watch(_) }
|
||||
}
|
||||
|
||||
def tablePlayer(fullId: String) = Open { implicit ctx =>
|
||||
OptionFuOk(GameRepo pov fullId) { pov =>
|
||||
(pov.game.tournamentId ?? TournamentRepo.byId) zip
|
||||
(pov.game.playable ?? env.takebacker.isAllowedByPrefs(pov.game)) map {
|
||||
case (tour, takebackable) =>
|
||||
pov.game.playable.fold(
|
||||
html.round.table.playing(pov, takebackable),
|
||||
html.round.table.end(pov, tour))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
def playerText(fullId: String) = Open { implicit ctx =>
|
||||
OptionResult(GameRepo pov fullId) { pov =>
|
||||
if (ctx.blindMode) Ok(html.game.textualRepresentation(pov, true))
|
||||
|
|
|
@ -88,8 +88,6 @@ GET /$fullId<\w{12}> controllers.Round.player(fullId
|
|||
GET /$gameId<\w{8}>/$color<white|black>/socket controllers.Round.websocketWatcher(gameId: String, color: String)
|
||||
GET /$gameId<\w{8}>/s.js controllers.Round.signedJs(gameId: String)
|
||||
GET /$fullId<\w{12}>/socket/v:apiVersion controllers.Round.websocketPlayer(fullId: String, apiVersion: Int)
|
||||
GET /$gameId<\w{8}>/$color<white|black>/table controllers.Round.tableWatcher(gameId: String, color: String)
|
||||
GET /$fullId<\w{12}>/table controllers.Round.tablePlayer(fullId: String)
|
||||
GET /$gameId<\w{8}>/$color<white|black>/side controllers.Round.sideWatcher(gameId: String, color: String)
|
||||
GET /$fullId<\w{12}>/side controllers.Round.sidePlayer(fullId: String)
|
||||
GET /$gameId<\w{8}>/continue/:mode controllers.Round.continue(gameId: String, mode: String)
|
||||
|
|
Loading…
Reference in New Issue