Skip to content

Commit

Permalink
rename game stream endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Apr 17, 2018
1 parent efb84fa commit 8120830
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/Api.scala
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ object Api extends LilaController {
} map toApiResult
}

def gameStream = Action.async(parse.tolerantText) { req =>
def gamesByUsersStream = Action.async(parse.tolerantText) { req =>
RequireHttp11(req) {
val userIds = req.body.split(',').take(300).toSet map lila.user.User.normalize
Ok.chunked(Env.game.stream.startedByUserIds(userIds)).fuccess
Expand Down
2 changes: 1 addition & 1 deletion conf/routes
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ GET /api/status controllers.Api.status
GET /api/socket controllers.Main.apiWebsocket
GET /api/users/status controllers.Api.usersStatus
GET /api/crosstable/:u1/:u2 controllers.Api.crosstable(u1: String, u2: String)
POST /api/stream/game controllers.Api.gameStream
POST /api/stream/games-by-users controllers.Api.gamesByUsersStream
GET /api/stream/event controllers.Api.eventStream

# Bot API
Expand Down

0 comments on commit 8120830

Please sign in to comment.