Skip to content

Commit

Permalink
Move pages router to save chess960
Browse files Browse the repository at this point in the history
  • Loading branch information
Unihedro committed Jan 25, 2016
1 parent e20f7d4 commit 1d71f83
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion app/controllers/Page.scala
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ object Page extends LilaController {

def antichess = page("antichess")

def chess960 = page("chess960")
def fischerrandom = page("chess960")

def horde = page("horde")

Expand Down
2 changes: 1 addition & 1 deletion app/views/game/variantLink.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@url = {
@variant match {
case chess.variant.Standard => {https://en.wikipedia.org/wiki/Chess}
case chess.variant.Chess960 => {@routes.Page.chess960}
case chess.variant.Chess960 => {@routes.Page.fischerrandom}
case chess.variant.KingOfTheHill => {@routes.Page.kingOfTheHill}
case chess.variant.ThreeCheck => {http:https://en.wikipedia.org/wiki/Three-check_chess}
case chess.variant.Antichess => {@routes.Page.antichess}
Expand Down
32 changes: 16 additions & 16 deletions conf/routes
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,22 @@ GET /blog controllers.Blog.index(ref: Option[String
GET /blog/:id/:slug controllers.Blog.show(id: String, slug: String, ref: Option[String] ?= None)
GET /blog.atom controllers.Blog.atom(ref: Option[String] ?= None)

# Pages
GET /thanks controllers.Page.thanks
GET /help-lichess controllers.Page.helpLichess
GET /terms-of-service controllers.Page.tos
GET /how-to-stream-on-lichess controllers.Page.streamHowTo
GET /contact controllers.Page.contact
GET /master controllers.Page.master
GET /king-of-the-hill controllers.Page.kingOfTheHill
GET /atomic controllers.Page.atomic
GET /antichess controllers.Page.antichess
GET /chess960 controllers.Page.fischerrandom
GET /horde controllers.Page.horde
GET /racing-kings controllers.Page.racingKings
GET /crazyhouse controllers.Page.crazyhouse
GET /privacy controllers.Page.privacy

# Training - Opening
GET /training/opening controllers.Opening.home
GET /training/opening/history controllers.Opening.history
Expand Down Expand Up @@ -387,22 +403,6 @@ GET /network/stream controllers.WorldMap.stream
POST /mobile/register/:platform/:deviceId controllers.Main.mobileRegister(platform: String, deviceId: String)
POST /mobile/unregister controllers.Main.mobileUnregister

# Pages
GET /thanks controllers.Page.thanks
GET /help-lichess controllers.Page.helpLichess
GET /terms-of-service controllers.Page.tos
GET /how-to-stream-on-lichess controllers.Page.streamHowTo
GET /contact controllers.Page.contact
GET /master controllers.Page.master
GET /king-of-the-hill controllers.Page.kingOfTheHill
GET /atomic controllers.Page.atomic
GET /antichess controllers.Page.antichess
GET /chess960 controllers.Page.chess960
GET /horde controllers.Page.horde
GET /racing-kings controllers.Page.racingKings
GET /crazyhouse controllers.Page.crazyhouse
GET /privacy controllers.Page.privacy

# Donate
GET /donate controllers.Donation.index
GET /donate/thanks controllers.Donation.thanks
Expand Down

0 comments on commit 1d71f83

Please sign in to comment.