Move pages router to save chess960
This commit is contained in:
parent
e20f7d4572
commit
1d71f835e8
|
@ -31,7 +31,7 @@ object Page extends LilaController {
|
|||
|
||||
def antichess = page("antichess")
|
||||
|
||||
def chess960 = page("chess960")
|
||||
def fischerrandom = page("chess960")
|
||||
|
||||
def horde = page("horde")
|
||||
|
||||
|
|
|
@ -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://en.wikipedia.org/wiki/Three-check_chess}
|
||||
case chess.variant.Antichess => {@routes.Page.antichess}
|
||||
|
|
32
conf/routes
32
conf/routes
|
@ -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
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue