16 lines
371 B
Scala
16 lines
371 B
Scala
package controllers
|
|
|
|
import lila.app._
|
|
import lila.notify.Notification.Notifies
|
|
|
|
final class Notify(env: Env) extends LilaController(env) {
|
|
|
|
def recent(page: Int) =
|
|
Auth { implicit ctx => me =>
|
|
XhrOrRedirectHome {
|
|
env.notifyM.api
|
|
.getNotificationsAndCount(Notifies(me.id), page) map env.notifyM.jsonHandlers.apply map JsonOk
|
|
}
|
|
}
|
|
}
|