lila/app/controllers/Page.scala
Thibault Duplessis a68a1369e3 add /privacy page
2015-02-17 16:22:54 +01:00

30 lines
562 B
Scala

package controllers
import play.api.mvc._, Results._
import lila.app._
import views._
object Page extends LilaController {
private def page(bookmark: String) = Open { implicit ctx =>
OptionOk(Prismic oneShotBookmark bookmark) {
case (doc, resolver) => views.html.site.page(doc, resolver)
}
}
def thanks = page("thanks")
def tos = page("tos")
def helpLichess = page("help")
def streamHowTo = page("stream-howto")
def contact = page("contact")
def kingOfTheHill = page("king-of-the-hill")
def privacy = page("privacy")
}