16 lines
256 B
Scala
16 lines
256 B
Scala
package controllers
|
|
|
|
import lila.app._
|
|
import views._
|
|
|
|
import play.api.mvc._
|
|
|
|
object Bookmark extends LilaController {
|
|
|
|
private def api = Env.bookmark.api
|
|
|
|
def toggle(gameId: String) = Auth { implicit ctx ⇒
|
|
me ⇒ api.toggle(gameId, me.id)
|
|
}
|
|
}
|