lila/conf/routes

565 lines
36 KiB
Plaintext
Raw Normal View History

# Accessibility
POST /toggle-blind-mode controllers.Main.toggleBlindMode
2013-03-18 17:36:22 -06:00
# Lobby
GET / controllers.Lobby.home
2014-07-29 14:40:07 -06:00
GET /lobby/socket/v:apiVersion controllers.Lobby.socket(apiVersion: Int)
2014-12-17 17:02:59 -07:00
GET /lobby/seeks controllers.Lobby.seeks
2013-03-18 17:36:22 -06:00
# Timeline
GET /timeline controllers.Timeline.home
POST /timeline/unsub/:channel controllers.Timeline.unsub(channel: String)
2015-09-21 02:08:48 -06:00
# Search
GET /games/search controllers.Search.index(page: Int ?= 1)
GET /games/export/search controllers.Search.export
# Game
GET /games/export-form/:user controllers.Game.export(user: String)
POST /games/export/:user controllers.Game.exportConfirm(user: String)
2013-07-31 09:21:42 -06:00
# TV
2013-07-31 10:21:45 -06:00
GET /tv controllers.Tv.index
2014-02-23 06:03:48 -07:00
GET /tv/embed controllers.Tv.embed
GET /tv/frame controllers.Tv.frame
2016-01-22 23:17:56 -07:00
GET /tv/feed controllers.Tv.feed
2018-01-07 18:55:11 -07:00
GET /tv/channels controllers.Tv.channels
2015-06-16 10:46:30 -06:00
GET /tv/:chanKey controllers.Tv.onChannel(chanKey: String)
GET /tv/:chanKey/$gameId<\w{8}>/$color<white|black>/sides controllers.Tv.sides(chanKey: String, gameId: String, color: String)
2015-09-20 03:21:32 -06:00
GET /games controllers.Tv.games
GET /games/:chanKey controllers.Tv.gamesChannel(chanKey: String)
2013-07-31 09:21:42 -06:00
# Relation
POST /rel/follow/:userId controllers.Relation.follow(userId: String)
POST /rel/unfollow/:userId controllers.Relation.unfollow(userId: String)
POST /rel/block/:userId controllers.Relation.block(userId: String)
POST /rel/unblock/:userId controllers.Relation.unblock(userId: String)
GET /@/:username/following controllers.Relation.following(username: String, page: Int ?= 1)
GET /@/:username/followers controllers.Relation.followers(username: String, page: Int ?= 1)
GET /rel/blocks controllers.Relation.blocks(page: Int ?= 1)
2015-11-26 21:05:59 -07:00
# Insight
POST /insights/refresh/:username controllers.Insight.refresh(username: String)
POST /insights/data/:username controllers.Insight.json(username: String)
2015-11-28 01:17:49 -07:00
GET /insights/:username controllers.Insight.index(username: String)
GET /insights/:username/:metric/:dimension controllers.Insight.path(username: String, metric: String, dimension: String, filters: String = "")
GET /insights/:username/:metric/:dimension/*filters controllers.Insight.path(username: String, metric: String, dimension: String, filters: String)
2015-07-18 11:59:23 -06:00
2016-05-11 10:21:03 -06:00
# User subpages
2015-12-11 22:49:00 -07:00
GET /@/:username/tournaments/:path controllers.UserTournament.path(username: String, path: String, page: Int ?= 1)
2013-03-20 08:23:41 -06:00
# User
GET /@/:username/mod controllers.User.mod(username: String)
2014-04-22 17:22:57 -06:00
POST /@/:username/note controllers.User.writeNote(username: String)
GET /@/:username/mini controllers.User.showMini(username: String)
GET /@/:username/tv controllers.User.tv(username: String)
GET /@/:username/studyTv controllers.User.studyTv(username: String)
2015-12-23 20:41:28 -07:00
GET /@/:username/perf/:perfKey controllers.User.perfStat(username: String, perfKey: String)
2017-07-22 12:59:24 -06:00
GET /@/:username/all controllers.User.gamesAll(username: String, page: Int ?= 1)
GET /@/:username/:filterName controllers.User.games(username: String, filterName: String, page: Int ?= 1)
2013-03-20 08:23:41 -06:00
GET /@/:username controllers.User.show(username: String)
2016-08-26 06:46:42 -06:00
GET /player/myself controllers.User.myself
GET /player/opponents controllers.User.opponents
2014-08-02 11:33:46 -06:00
GET /player controllers.User.list
GET /player/top/200/:perfKey controllers.User.top200(perfKey: String)
GET /player/top/week controllers.User.topWeek
GET /player/online controllers.User.online
GET /player/autocomplete controllers.User.autocomplete
2013-10-20 07:46:29 -06:00
# Account
GET /account/passwd controllers.Account.passwd
POST /account/passwd controllers.Account.passwdApply
2014-12-10 15:07:43 -07:00
GET /account/email controllers.Account.email
POST /account/email controllers.Account.emailApply
GET /account/email/confirm/:token controllers.Account.emailConfirm(token: String)
2013-10-20 07:46:29 -06:00
GET /account/close controllers.Account.close
POST /account/closeConfirm controllers.Account.closeConfirm
GET /account/profile controllers.Account.profile
POST /account/profile controllers.Account.profileApply
2015-04-12 00:36:27 -06:00
GET /account/kid controllers.Account.kid
POST /account/kidConfirm controllers.Account.kidConfirm
2015-11-10 07:18:03 -07:00
GET /account/security controllers.Account.security
POST /account/signout/:sessionId controllers.Account.signout(sessionId: String)
2014-07-21 14:46:52 -06:00
GET /account/info controllers.Account.info
2017-05-03 08:22:50 -06:00
GET /dasher controllers.Dasher.get
2014-05-31 11:01:43 -06:00
# Site
2015-09-06 08:28:37 -06:00
GET /socket controllers.Main.websocket
2014-05-31 11:01:43 -06:00
# Blog
2015-09-06 08:28:37 -06:00
GET /blog controllers.Blog.index(ref: Option[String] ?= None)
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)
2014-05-31 11:01:43 -06:00
2014-12-16 05:46:36 -07:00
# Training - Coordinate
GET /training/coordinate controllers.Coordinate.home
POST /training/coordinate/score controllers.Coordinate.score
POST /training/coordinate/color controllers.Coordinate.color
2014-05-03 17:45:14 -06:00
# Training - Puzzle
GET /training controllers.Puzzle.home
GET /training/new controllers.Puzzle.newPuzzle
GET /training/daily controllers.Puzzle.daily
GET /training/embed controllers.Puzzle.embed
GET /training/frame controllers.Puzzle.frame
GET /training/export/png/:id.png controllers.Export.puzzlePng(id: Int)
2017-11-26 19:32:29 -07:00
GET /training/batch controllers.Puzzle.batchSelect
2017-11-26 08:32:55 -07:00
POST /training/batch controllers.Puzzle.batchSolve
GET /training/:id controllers.Puzzle.show(id: Int)
2014-09-15 11:11:24 -06:00
GET /training/:id/load controllers.Puzzle.load(id: Int)
POST /training/:id/vote controllers.Puzzle.vote(id: Int)
2016-12-07 05:13:17 -07:00
POST /training/:id/round2 controllers.Puzzle.round2(id: Int)
# User Analysis
GET /analysis/socket controllers.UserAnalysis.socket
GET /analysis/help controllers.UserAnalysis.help
GET /analysis/*something controllers.UserAnalysis.parse(something: String)
GET /analysis controllers.UserAnalysis.index
2016-02-24 22:41:27 -07:00
POST /analysis/pgn controllers.UserAnalysis.pgn
2016-05-11 10:21:03 -06:00
# Study
GET /study controllers.Study.allDefault(page: Int ?= 1)
GET /study/all/:order controllers.Study.all(order: String, page: Int ?= 1)
GET /study/mine/:order controllers.Study.mine(order: String, page: Int ?= 1)
GET /study/member/:order controllers.Study.mineMember(order: String, page: Int ?= 1)
GET /study/public/:order controllers.Study.minePublic(order: String, page: Int ?= 1)
GET /study/private/:order controllers.Study.minePrivate(order: String, page: Int ?= 1)
GET /study/likes/:order controllers.Study.mineLikes(order: String, page: Int ?= 1)
GET /study/by/:username controllers.Study.byOwnerDefault(username: String, page: Int ?= 1)
GET /study/by/:username/:order controllers.Study.byOwner(username: String, order: String, page: Int ?= 1)
2016-07-25 12:14:43 -06:00
GET /study/search controllers.Study.search(q: String ?= "", page: Int ?= 1)
2016-02-27 04:30:38 -07:00
GET /study/$id<\w{8}> controllers.Study.show(id: String)
POST /study controllers.Study.create
POST /study/as controllers.Study.createAs
2016-04-18 04:51:48 -06:00
GET /study/$id<\w{8}>/socket/v:apiVersion controllers.Study.websocket(id: String, apiVersion: Int)
GET /study/$id<\w{8}>.pgn controllers.Study.pgn(id: String)
2016-10-21 07:02:57 -06:00
GET /study/$id<\w{8}>/$chapterId<\w{8}>.pgn controllers.Study.chapterPgn(id: String, chapterId: String)
2016-05-12 08:21:25 -06:00
POST /study/$id<\w{8}>/delete controllers.Study.delete(id: String)
2016-08-31 10:00:45 -06:00
GET /study/$id<\w{8}>/clone controllers.Study.cloneStudy(id: String)
POST /study/$id<\w{8}>/cloneAplly controllers.Study.cloneApply(id: String)
GET /study/$id<\w{8}>/$chapterId<\w{8}> controllers.Study.chapter(id: String, chapterId: String)
2016-10-22 03:22:30 -06:00
GET /study/$id<\w{8}>/$chapterId<\w{8}>/meta controllers.Study.chapterMeta(id: String, chapterId: String)
2016-10-08 12:49:51 -06:00
GET /study/embed/$id<\w{8}>/$chapterId<\w{8}> controllers.Study.embed(id: String, chapterId: String)
POST /study/$id<\w{8}>/clear-chat controllers.Study.clearChat(id: String)
2016-02-27 04:30:38 -07:00
2017-09-20 19:26:15 -06:00
# Relay
2017-10-27 09:56:26 -06:00
GET /broadcast controllers.Relay.index(page: Int ?= 1)
2017-10-06 19:05:13 -06:00
GET /broadcast/new controllers.Relay.form
POST /broadcast/new controllers.Relay.create
GET /broadcast/:slug/$id<\w{8}> controllers.Relay.show(slug: String, id: String)
GET /broadcast/:slug/$id<\w{8}>/$chapterId<\w{8}> controllers.Relay.chapter(slug: String, id: String, chapterId: String)
2017-10-06 19:05:13 -06:00
GET /broadcast/:slug/$id<\w{8}>/edit controllers.Relay.edit(slug: String, id: String)
POST /broadcast/:slug/$id<\w{8}>/edit controllers.Relay.update(slug: String, id: String)
# GET /broadcast/:slug/$id<\w{8}>/$chapterId<\w{8}> controllers.Relay.chapter(slug: String, id: String, chapterId: String)
GET /broadcast/$id<\w{8}>/socket/v:apiVersion controllers.Relay.websocket(id: String, apiVersion: Int)
2017-09-20 19:26:15 -06:00
2016-06-23 01:45:11 -06:00
# Learn
GET /learn controllers.Learn.index
2016-07-02 13:34:09 -06:00
POST /learn/score controllers.Learn.score
2016-07-05 04:51:18 -06:00
POST /learn/reset controllers.Learn.reset
2016-06-23 01:45:11 -06:00
2016-07-14 13:50:18 -06:00
# Patron
2016-07-10 14:12:22 -06:00
GET /patron controllers.Plan.index
POST /patron/charge controllers.Plan.charge
GET /patron/thanks controllers.Plan.thanks
2016-07-19 17:26:00 -06:00
GET /patron/list controllers.Plan.list
2016-07-10 14:12:22 -06:00
POST /patron/switch controllers.Plan.switch
2016-07-13 08:14:20 -06:00
POST /patron/cancel controllers.Plan.cancel
2016-07-10 14:12:22 -06:00
POST /patron/webhook controllers.Plan.webhook
2016-07-19 16:57:26 -06:00
POST /patron/ipn controllers.Plan.payPalIpn
GET /features controllers.Plan.features
2016-06-05 15:31:17 -06:00
2017-01-21 06:51:29 -07:00
# Practice
2017-01-23 04:02:04 -07:00
GET /practice controllers.Practice.index
2017-02-04 03:06:02 -07:00
GET /practice/load/:studyId/:chapterId controllers.Practice.chapter(studyId: String, chapterId: String)
GET /practice/config controllers.Practice.config
POST /practice/config controllers.Practice.configSave
POST /practice/reset controllers.Practice.reset
GET /practice/:sectionId controllers.Practice.showSection(sectionId: String)
GET /practice/:sectionId/:studySlug controllers.Practice.showStudySlug(sectionId: String, studySlug: String)
2017-01-23 04:02:04 -07:00
GET /practice/:sectionId/:studySlug/:studyId controllers.Practice.show(sectionId: String, studySlug: String, studyId: String)
GET /practice/:sectionId/:studySlug/:studyId/:chapterId controllers.Practice.showChapter(sectionId: String, studySlug: String, studyId: String, chapterId: String)
2017-01-23 04:02:04 -07:00
POST /practice/complete/:chapterId/:moves controllers.Practice.complete(chapterId: String, moves: Int)
2017-01-21 06:51:29 -07:00
2017-12-29 22:05:58 -07:00
# Streamer
GET /streamer controllers.Streamer.index(page: Int ?= 1)
GET /streamer/edit controllers.Streamer.edit
2018-01-02 08:00:13 -07:00
POST /streamer/new controllers.Streamer.create
2017-12-29 22:05:58 -07:00
POST /streamer/edit controllers.Streamer.editApply
2017-12-31 07:04:29 -07:00
POST /streamer/approval/request controllers.Streamer.approvalRequest
2017-12-29 22:05:58 -07:00
GET /streamer/picture/edit controllers.Streamer.picture
POST /streamer/picture/upload controllers.Streamer.pictureApply
POST /streamer/picture/delete controllers.Streamer.pictureDelete
GET /streamer/:username controllers.Streamer.show(username: String)
# Round
2014-06-29 05:07:17 -06:00
GET /$gameId<\w{8}> controllers.Round.watcher(gameId: String, color: String = "white")
GET /$gameId<\w{8}>/$color<white|black> controllers.Round.watcher(gameId: String, color: String)
GET /$fullId<\w{12}> controllers.Round.player(fullId: String)
GET /$gameId<\w{8}>/$color<white|black>/socket controllers.Round.websocketWatcher(gameId: String, color: String)
GET /$fullId<\w{12}>/socket/v:apiVersion controllers.Round.websocketPlayer(fullId: String, apiVersion: Int)
2017-08-17 16:07:43 -06:00
GET /$gameId<\w{8}>/$color<white|black>/sides controllers.Round.sides(gameId: String, color: String)
2014-06-29 05:07:17 -06:00
GET /$gameId<\w{8}>/continue/:mode controllers.Round.continue(gameId: String, mode: String)
2016-06-14 05:13:41 -06:00
GET /$gameId<\w{8}>/note controllers.Round.readNote(gameId: String)
2014-12-07 04:32:18 -07:00
POST /$gameId<\w{8}>/note controllers.Round.writeNote(gameId: String)
GET /$gameId<\w{8}>/mini controllers.Round.mini(gameId: String, color: String = "white")
GET /$gameId<\w{8}>/$color<white|black>/mini controllers.Round.mini(gameId: String, color: String)
2016-02-17 09:00:47 -07:00
GET /$fullId<\w{12}>/mini controllers.Round.miniFullId(fullId: String)
2014-06-29 05:07:17 -06:00
GET /$gameId<\w{8}>/edit controllers.Editor.game(gameId: String)
GET /$gameId<\w{8}>/$color<white|black>/analysis controllers.UserAnalysis.game(gameId: String, color: String)
2015-09-16 15:03:56 -06:00
POST /$fullId<\w{12}>/forecasts controllers.UserAnalysis.forecasts(fullId: String)
POST /$fullId<\w{12}>/forecasts/:uci controllers.UserAnalysis.forecastsOnMyTurn(fullId: String, uci: String)
POST /$fullId<\w{12}>/resign controllers.Round.resign(fullId: String)
2013-12-23 11:56:30 -07:00
2015-10-07 11:18:48 -06:00
GET /$gameId<\w{8}>.atom controllers.Round.atom(gameId: String, color: String = "white")
GET /$gameId<\w{8}>/$color<white|black>.atom controllers.Round.atom(gameId: String, color: String)
2016-10-22 08:08:11 -06:00
GET /embed/$gameId<\w{8}> controllers.Analyse.embed(gameId: String, color: String = "white")
GET /embed/$gameId<\w{8}>/$color<white|black> controllers.Analyse.embed(gameId: String, color: String)
POST /$gameId<\w{8}>/delete controllers.Game.delete(gameId: String)
GET /round-next/$gameId<\w{8}> controllers.Round.next(gameId: String)
GET /whats-next/$fullId<\w{12}> controllers.Round.whatsNext(fullId: String)
2014-06-05 04:07:41 -06:00
# Round accessibility: text representation
2014-06-29 05:07:17 -06:00
GET /$fullId<\w{12}>/text controllers.Round.playerText(fullId: String)
GET /$gameId<\w{8}>/$color<white|black>/text controllers.Round.watcherText(gameId: String, color: String)
2014-06-05 04:07:41 -06:00
# Tournament
GET /tournament controllers.Tournament.home(page: Int ?= 1)
GET /tournament/featured controllers.Tournament.featured
2013-05-12 09:02:45 -06:00
GET /tournament/new controllers.Tournament.form
POST /tournament/new controllers.Tournament.create
2017-12-11 08:51:09 -07:00
GET /tournament/calendar controllers.Tournament.calendar
2014-07-23 15:08:59 -06:00
GET /tournament/$id<\w{8}> controllers.Tournament.show(id: String)
GET /tournament/$id<\w{8}>/standing/:page controllers.Tournament.standing(id: String, page: Int)
2018-01-08 11:03:17 -07:00
GET /tournament/$id<\w{8}>/page-of/:userId controllers.Tournament.pageOf(id: String, userId: String)
GET /tournament/$id<\w{8}>/socket/v:apiVersion controllers.Tournament.websocket(id: String, apiVersion: Int)
2014-07-23 15:08:59 -06:00
POST /tournament/$id<\w{8}>/join controllers.Tournament.join(id: String)
POST /tournament/$id<\w{8}>/withdraw controllers.Tournament.withdraw(id: String)
GET /tournament/$id<\w{8}>/mini/:user/:nb controllers.Tournament.userGameNbMini(id: String, user: String, nb: Int)
GET /tournament/$id<\w{8}>/show/:user/:nb controllers.Tournament.userGameNbShow(id: String, user: String, nb: Int)
2015-10-02 14:52:00 -06:00
GET /tournament/$id<\w{8}>/player/:user controllers.Tournament.player(id: String, user: String)
POST /tournament/$id<\w{8}>/terminate controllers.Tournament.terminate(id: String)
2014-07-23 15:08:59 -06:00
GET /tournament/help controllers.Tournament.help(system: Option[String] ?= None)
GET /tournament/limited-invitation controllers.Tournament.limitedInvitation
2016-10-17 08:17:55 -06:00
GET /tournament/leaderboard controllers.Tournament.leaderboard
2017-12-05 09:38:16 -07:00
GET /tournament/shields controllers.Tournament.shields
2013-12-23 11:56:30 -07:00
2016-03-28 05:08:48 -06:00
# Tournament CRUD
GET /tournament/manager controllers.TournamentCrud.index
GET /tournament/manager/$id<\w{8}> controllers.TournamentCrud.edit(id: String)
POST /tournament/manager/$id<\w{8}> controllers.TournamentCrud.update(id: String)
GET /tournament/manager/new controllers.TournamentCrud.form
POST /tournament/manager controllers.TournamentCrud.create
2015-03-30 16:40:26 -06:00
# Simul
GET /simul controllers.Simul.home
GET /simul/new controllers.Simul.form
POST /simul/new controllers.Simul.create
2015-04-03 07:33:31 -06:00
GET /simul/reload controllers.Simul.homeReload
GET /simul/$id<\w{8}> controllers.Simul.show(id: String)
GET /simul/$id<\w{8}>/socket/v:apiVersion controllers.Simul.websocket(id: String, apiVersion: Int)
POST /simul/$id<\w{8}>/accept/:user controllers.Simul.accept(id: String, user: String)
POST /simul/$id<\w{8}>/reject/:user controllers.Simul.reject(id: String, user: String)
POST /simul/$id<\w{8}>/start controllers.Simul.start(id: String)
POST /simul/$id<\w{8}>/abort controllers.Simul.abort(id: String)
2015-04-03 15:04:59 -06:00
POST /simul/$id<\w{8}>/join/:variant controllers.Simul.join(id: String, variant: String)
POST /simul/$id<\w{8}>/withdraw controllers.Simul.withdraw(id: String)
2015-03-30 16:40:26 -06:00
# Team
2013-05-06 14:49:12 -06:00
GET /team controllers.Team.home(page: Int ?= 1)
GET /team/new controllers.Team.form
POST /team/new controllers.Team.create
GET /team/me controllers.Team.mine
2015-09-09 09:32:49 -06:00
GET /team/all controllers.Team.all(page: Int ?= 1)
2013-04-09 12:58:34 -06:00
GET /team/requests controllers.Team.requests
2013-05-06 14:49:12 -06:00
GET /team/search controllers.Team.search(text: String ?= "", page: Int ?= 1)
GET /team/:id controllers.Team.show(id: String, page: Int ?= 1)
2013-05-06 14:49:12 -06:00
GET /team/:id/join controllers.Team.joinPage(id: String)
POST /team/:id/join controllers.Team.join(id: String)
POST /team/:id/quit controllers.Team.quit(id: String)
GET /team/:id/request/new controllers.Team.requestForm(id: String)
POST /team/:id/request/new controllers.Team.requestCreate(id: String)
POST /team/:id/request/process controllers.Team.requestProcess(id: String)
GET /team/:id/edit controllers.Team.edit(id: String)
POST /team/:id/edit controllers.Team.update(id: String)
GET /team/:id/kick controllers.Team.kickForm(id: String)
POST /team/:id/kick controllers.Team.kick(id: String)
POST /team/:id/close controllers.Team.close(id: String)
# Analyse
2015-06-27 11:01:49 -06:00
POST /$gameId<\w{8}>/request-analysis controllers.Analyse.requestAnalysis(gameId: String)
2013-12-23 11:56:30 -07:00
GET /game/export/$gameId<\w{8}>.pgn controllers.Export.pgn(gameId: String)
GET /game/export/png/$gameId<\w{8}>.png controllers.Export.png(gameId: String)
2016-03-11 10:09:59 -07:00
# Fishnet
POST /fishnet/acquire controllers.Fishnet.acquire
2016-03-13 04:27:27 -06:00
POST /fishnet/move/$workId<\w{8}> controllers.Fishnet.move(workId: String)
POST /fishnet/analysis/$workId<\w{8}> controllers.Fishnet.analysis(workId: String)
2016-03-14 22:53:39 -06:00
POST /fishnet/abort/$workId<\w{8}> controllers.Fishnet.abort(workId: String)
2016-03-22 11:48:54 -06:00
GET /fishnet/key/$key<\w{8}> controllers.Fishnet.keyExists(key: String)
2017-01-08 13:56:36 -07:00
GET /fishnet/status controllers.Fishnet.status
2016-03-11 10:09:59 -07:00
2013-10-19 09:22:32 -06:00
# Pref
POST /pref/zoom controllers.Pref.setZoom
2013-10-19 09:22:32 -06:00
POST /pref/:name controllers.Pref.set(name: String)
2015-09-09 10:09:15 -06:00
GET /account/preferences/:categ controllers.Pref.form(categ: String)
2013-10-21 04:33:39 -06:00
POST /account/preferences controllers.Pref.formApply
POST /account/preferences/tag/:name/:value controllers.Pref.saveTag(name: String, value: String)
2013-12-23 11:56:30 -07:00
# Setup
2013-05-08 20:00:13 -06:00
GET /setup/ai controllers.Setup.aiForm
POST /setup/ai controllers.Setup.ai
2014-05-24 10:43:09 -06:00
GET /setup/friend controllers.Setup.friendForm(user: Option[String] ?= None)
POST /setup/friend controllers.Setup.friend(user: Option[String] ?= None)
2013-05-08 20:00:13 -06:00
GET /setup/hook controllers.Setup.hookForm
2015-04-22 03:47:55 -06:00
POST /setup/hook/:uid/like/:gameId controllers.Setup.like(uid: String, gameId: String)
2013-05-18 21:31:06 -06:00
POST /setup/hook/:uid controllers.Setup.hook(uid: String)
2013-05-08 20:00:13 -06:00
GET /setup/filter controllers.Setup.filterForm
POST /setup/filter controllers.Setup.filter
GET /setup/validate-fen controllers.Setup.validateFen
2013-12-23 11:56:30 -07:00
2016-01-26 22:56:30 -07:00
# Challenge
GET /challenge controllers.Challenge.all
2016-02-03 01:26:22 -07:00
GET /challenge/$id<\w{8}> controllers.Challenge.show(id: String)
2016-01-31 06:44:12 -07:00
POST /challenge/$id<\w{8}>/accept controllers.Challenge.accept(id: String)
POST /challenge/$id<\w{8}>/decline controllers.Challenge.decline(id: String)
2016-01-30 03:27:41 -07:00
POST /challenge/$id<\w{8}>/cancel controllers.Challenge.cancel(id: String)
POST /challenge/$id<\w{8}>/to-friend controllers.Challenge.toFriend(id: String)
2016-02-01 19:28:05 -07:00
GET /challenge/$id<\w{8}>/socket/v:apiVersion controllers.Challenge.websocket(id: String, apiVersion: Int)
POST /challenge/rematch-of/$id<\w{8}> controllers.Challenge.rematchOf(id: String)
2016-01-26 22:56:30 -07:00
# Notify
2016-05-31 17:20:34 -06:00
GET /notify controllers.Notify.recent(page: Int ?= 1)
2015-03-22 06:38:01 -06:00
# Video
GET /video controllers.Video.index
2015-03-24 14:39:45 -06:00
GET /video/tags controllers.Video.tags
2015-03-22 10:52:26 -06:00
GET /video/author/:author controllers.Video.author(author: String)
2015-03-22 08:01:57 -06:00
GET /video/:id controllers.Video.show(id: String)
2015-03-22 06:38:01 -06:00
# I18n
2014-12-31 09:15:34 -07:00
POST /translation/select controllers.I18n.select
2013-12-23 11:56:30 -07:00
# Authentication
2013-04-09 12:58:34 -06:00
GET /login controllers.Auth.login
POST /login controllers.Auth.authenticate
2017-08-24 09:24:00 -06:00
GET /logout controllers.Auth.logoutGet
POST /logout controllers.Auth.logout
2013-04-09 12:58:34 -06:00
GET /signup controllers.Auth.signup
POST /signup controllers.Auth.signupPost
2015-06-25 08:54:26 -06:00
GET /signup/check-your-email/:name controllers.Auth.checkYourEmail(name: String)
GET /signup/confirm/:token controllers.Auth.signupConfirmEmail(token: String)
2014-12-14 17:32:18 -07:00
GET /password/reset controllers.Auth.passwordReset
2015-06-25 09:49:48 -06:00
POST /password/reset/send controllers.Auth.passwordResetApply
2014-12-14 17:32:18 -07:00
GET /password/reset/sent/:email controllers.Auth.passwordResetSent(email: String)
GET /password/reset/confirm/:token controllers.Auth.passwordResetConfirm(token: String)
POST /password/reset/confirm/:token controllers.Auth.passwordResetConfirmApply(token: String)
POST /auth/set-fp/:fp/:ms controllers.Auth.setFingerPrint(fp: String, ms: Int)
POST /auth/token controllers.Auth.makeLoginToken
GET /auth/token/:token controllers.Auth.loginWithToken(token: String)
2013-12-23 11:56:30 -07:00
# Mod
POST /mod/:username/engine/:v controllers.Mod.engine(username: String, v: Boolean)
POST /mod/:username/booster/:v controllers.Mod.booster(username: String, v: Boolean)
POST /mod/:username/troll/:v controllers.Mod.troll(username: String, v: Boolean)
POST /mod/:username/ban/:v controllers.Mod.ban(username: String, v: Boolean)
2017-10-31 10:13:37 -06:00
POST /mod/:username/delete-pms-and-chats controllers.Mod.deletePmsAndChats(username: String)
2017-03-30 10:21:52 -06:00
POST /mod/:username/warn controllers.Mod.warn(username: String, subject: String)
2014-02-01 06:13:22 -07:00
POST /mod/:username/close controllers.Mod.closeAccount(username: String)
2013-09-11 04:38:16 -06:00
POST /mod/:username/reopen controllers.Mod.reopenAccount(username: String)
2014-02-26 17:18:09 -07:00
POST /mod/:username/title controllers.Mod.setTitle(username: String)
2017-05-10 17:07:04 -06:00
POST /mod/:username/inquiry controllers.Mod.spontaneousInquiry(username: String)
2017-09-04 11:41:58 -06:00
GET /mod/:username/communication controllers.Mod.communicationPublic(username: String)
GET /mod/:username/communication/private controllers.Mod.communicationPrivate(username: String)
POST /mod/:username/rankban/:v controllers.Mod.rankban(username: String, v: Boolean)
POST /mod/:username/reportban/:v controllers.Mod.reportban(username: String, v: Boolean)
2017-08-03 04:43:29 -06:00
POST /mod/:username/impersonate controllers.Mod.impersonate(username: String)
GET /mod/log controllers.Mod.log
POST /mod/:username/refreshUserAssess controllers.Mod.refreshUserAssess(username: String)
2015-08-12 05:17:16 -06:00
POST /mod/:username/email controllers.Mod.setEmail(username: String)
2016-01-04 21:18:39 -07:00
POST /mod/:username/notify-slack controllers.Mod.notifySlack(username: String)
GET /mod/ip-intel controllers.Mod.ipIntel(ip: String)
2016-01-10 21:09:37 -07:00
GET /mod/leaderboard controllers.Mod.gamify
2016-01-10 22:18:26 -07:00
GET /mod/leaderboard/:period controllers.Mod.gamifyPeriod(period: String)
GET /mod/search controllers.Mod.search
2016-06-10 18:13:57 -06:00
GET /mod/chat-user/:username controllers.Mod.chatUser(username: String)
2017-01-14 08:42:26 -07:00
GET /mod/:username/permissions controllers.Mod.permissions(username: String)
POST /mod/:username/permissions controllers.Mod.savePermissions(username: String)
2016-09-04 09:03:45 -06:00
GET /mod/public-chat controllers.Mod.publicChat
GET /mod/email-confirm controllers.Mod.emailConfirm
2017-10-28 15:40:52 -06:00
GET /mod/chat-panic controllers.Mod.chatPanic
POST /mod/chat-panic controllers.Mod.chatPanicPost
2017-05-01 05:30:25 -06:00
# Irwin
2017-05-10 11:03:41 -06:00
GET /irwin controllers.Irwin.dashboard
2017-05-10 17:57:46 -06:00
GET /irwin/stream controllers.Irwin.eventStream
2017-05-01 05:30:25 -06:00
POST /irwin/report controllers.Irwin.saveReport
GET /irwin/:username/assessment controllers.Irwin.assessment(username: String)
GET /irwin/users-mark-and-current-report controllers.Irwin.usersMarkAndCurrentReport(ids: String)
2013-12-23 11:56:30 -07:00
# Bookmark
2014-06-29 05:07:17 -06:00
POST /bookmark/$gameId<\w{8}> controllers.Bookmark.toggle(gameId: String)
2013-12-23 11:56:30 -07:00
# Forum
GET /forum controllers.ForumCateg.index
GET /forum/recent controllers.ForumPost.recent
GET /forum/search controllers.ForumPost.search(text: String ?= "", page: Int ?= 1)
2013-04-09 12:58:34 -06:00
GET /forum/:slug controllers.ForumCateg.show(slug: String, page: Int ?= 1)
GET /forum/:categSlug/form controllers.ForumTopic.form(categSlug: String)
POST /forum/:categSlug/new controllers.ForumTopic.create(categSlug: String)
GET /forum/participants/:topicId controllers.ForumTopic.participants(topicId: String)
GET /forum/:categSlug/:slug controllers.ForumTopic.show(categSlug: String, slug: String, page: Int ?= 1)
POST /forum/:categSlug/:slug/close controllers.ForumTopic.close(categSlug: String, slug: String)
POST /forum/:categSlug/:slug/hide controllers.ForumTopic.hide(categSlug: String, slug: String)
POST /forum/:categSlug/:slug/sticky controllers.ForumTopic.sticky(categSlug: String, slug: String)
POST /forum/:categSlug/:slug/new controllers.ForumPost.create(categSlug: String, slug: String, page: Int ?= 1)
POST /forum/:categSlug/delete/:id controllers.ForumPost.delete(categSlug: String, id: String)
2016-09-16 17:31:51 -06:00
POST /forum/post/:id controllers.ForumPost.edit(id: String)
2013-05-27 09:01:19 -06:00
GET /forum/redirect/post/:id controllers.ForumPost.redirect(id: String)
2013-12-23 11:56:30 -07:00
# Message
2013-05-06 15:52:48 -06:00
GET /inbox controllers.Message.inbox(page: Int ?= 1)
GET /inbox/new controllers.Message.form
POST /inbox/new controllers.Message.create
2016-08-20 04:03:10 -06:00
POST /inbox/batch controllers.Message.batch
2014-06-29 05:07:17 -06:00
GET /inbox/$id<\w{8}> controllers.Message.thread(id: String)
POST /inbox/$id<\w{8}> controllers.Message.answer(id: String)
POST /inbox/$id<\w{8}>/delete controllers.Message.delete(id: String)
2013-12-23 11:56:30 -07:00
2016-08-21 01:16:41 -06:00
# Coach
2016-09-01 06:32:12 -06:00
GET /coach controllers.Coach.allDefault(page: Int ?= 1)
GET /coach/sort/:order controllers.Coach.all(order: String, page: Int ?= 1)
2016-08-22 04:55:55 -06:00
GET /coach/edit controllers.Coach.edit
POST /coach/edit controllers.Coach.editApply
2016-09-01 14:21:42 -06:00
GET /coach/picture/edit controllers.Coach.picture
POST /coach/picture/upload controllers.Coach.pictureApply
POST /coach/picture/delete controllers.Coach.pictureDelete
2016-08-31 15:47:21 -06:00
POST /coach/approve-review/:id controllers.Coach.approveReview(id: String)
POST /coach/mod-review/:id controllers.Coach.modReview(id: String)
2016-08-22 06:04:01 -06:00
GET /coach/:username controllers.Coach.show(username: String)
2016-08-31 07:20:30 -06:00
POST /coach/:username/review controllers.Coach.review(username: String)
2016-08-21 01:16:41 -06:00
2016-08-22 07:57:25 -06:00
# DB image
GET /image/:id/:hash/:name controllers.Main.image(id: String, hash: String, name: String)
2013-05-31 15:48:04 -06:00
# Paste
GET /paste controllers.Importer.importGame
POST /import controllers.Importer.sendGame
GET /import/master/$id<\w{8}>/:color controllers.Importer.masterGame(id: String, color: String)
2013-07-21 06:27:47 -06:00
# Edit
2016-05-13 16:01:44 -06:00
GET /editor.json controllers.Editor.data
GET /editor/*urlFen controllers.Editor.load(urlFen: String)
GET /editor controllers.Editor.index
2013-12-23 11:56:30 -07:00
# Report
GET /report controllers.Report.form
POST /report controllers.Report.create
GET /report/thanks controllers.Report.thanks(reported: String)
2013-07-27 14:55:29 -06:00
GET /report/list controllers.Report.list
2017-05-10 05:42:10 -06:00
GET /report/list/:room controllers.Report.listWithFilter(room: String)
2017-05-09 17:23:10 -06:00
POST /report/:id/inquiry controllers.Report.inquiry(id: String)
2013-07-27 14:55:29 -06:00
POST /report/:id/process controllers.Report.process(id: String)
POST /report/:id/xfiles controllers.Report.xfiles(id: String)
# QA
GET /qa controllers.QaQuestion.index(page: Option[Int] ?= None)
GET /qa/search controllers.QaQuestion.search
GET /qa/ask controllers.QaQuestion.ask
POST /qa/ask controllers.QaQuestion.doAsk
GET /qa/tag/:slug controllers.QaQuestion.byTag(slug: String)
GET /qa/:id/:slug controllers.QaQuestion.show(id: Int, slug: String)
2014-07-05 08:50:04 -06:00
GET /qa/:id/:slug/edit controllers.QaQuestion.edit(id: Int, slug: String)
POST /qa/:id/edit controllers.QaQuestion.doEdit(id: Int)
POST /qa/:id/vote controllers.QaQuestion.vote(id: Int)
POST /qa/:id/rm controllers.QaQuestion.remove(id: Int)
2018-01-05 08:24:54 -07:00
POST /qa/:id/lock controllers.QaQuestion.lock(id: Int)
2014-07-05 08:50:04 -06:00
POST /qa/:id/answer controllers.QaAnswer.create(id: Int)
POST /qa/:id/:a/vote controllers.QaAnswer.vote(id: Int, a: Int)
POST /qa/:id/:a/accept controllers.QaAnswer.accept(id: Int, a: Int)
POST /qa/:id/:a/edit-answer controllers.QaAnswer.doEdit(id: Int, a: Int)
POST /qa/:id/:a/rm-answer controllers.QaAnswer.remove(id: Int, a: Int)
2014-09-09 13:55:44 -06:00
POST /qa/:id/:a/move controllers.QaAnswer.moveTo(id: Int, a: Int)
2014-07-05 08:50:04 -06:00
POST /qa/:id/comment controllers.QaComment.question(id: Int)
POST /qa/:id/:a/comment controllers.QaComment.answer(id: Int, a: Int)
POST /qa/:id/:c/rm-comment controllers.QaComment.remove(id: Int, c: String)
2015-09-20 14:04:02 -06:00
# Stats
GET /stat/rating/distribution/:perf controllers.Stat.ratingDistribution(perf: String)
2013-12-30 19:00:56 -07:00
# API
2014-01-08 17:06:20 -07:00
GET /api/user controllers.Api.users
2017-01-22 14:21:57 -07:00
POST /api/users controllers.Api.usersByIds
2016-01-21 23:45:07 -07:00
GET /api/user/:name controllers.Api.user(name: String)
GET /api/user/:name/games controllers.Api.userGames(name: String)
GET /api/user/:name/activity controllers.Api.activity(name: String)
2014-06-06 03:08:43 -06:00
GET /api/game/:id controllers.Api.game(id: String)
GET /api/games/vs/:u1/:u2 controllers.Api.gamesVs(u1: String, u2: String)
2017-04-24 03:42:44 -06:00
GET /api/games/team/:teamId controllers.Api.gamesVsTeam(teamId: String)
2017-01-22 13:57:12 -07:00
POST /api/games controllers.Api.games
GET /api/tournament controllers.Api.currentTournaments
GET /api/tournament/:id controllers.Api.tournament(id: String)
2015-01-17 04:35:54 -07:00
GET /api/status controllers.Api.status
2016-09-23 04:09:03 -06:00
GET /api/socket controllers.Main.apiWebsocket
POST /api/game-stream controllers.Api.gameStream
GET /api/users/status controllers.Api.usersStatus
2013-12-30 19:00:56 -07:00
2016-08-22 16:05:10 -06:00
# Events
2016-08-23 07:16:27 -06:00
GET /event controllers.Event.index
2016-08-24 15:43:35 -06:00
GET /event/$id<\w{8}> controllers.Event.show(id: String)
2016-08-23 07:16:27 -06:00
GET /event/manager controllers.Event.manager
GET /event/manager/$id<\w{8}> controllers.Event.edit(id: String)
POST /event/manager/$id<\w{8}> controllers.Event.update(id: String)
GET /event/manager/new controllers.Event.form
POST /event/manager controllers.Event.create
2016-08-22 16:05:10 -06:00
2013-04-09 12:58:34 -06:00
# Misc
2014-08-25 02:09:16 -06:00
GET /captcha/$id<\w{8}> controllers.Main.captchaCheck(id: String)
2013-04-09 12:58:34 -06:00
GET /developers controllers.Main.developers
2013-05-31 06:27:18 -06:00
GET /embed controllers.Main.embed
2015-02-09 10:02:57 -07:00
GET /mobile controllers.Main.mobile
GET /lag controllers.Main.lag
2017-03-10 08:11:48 -07:00
GET /fpmenu controllers.Main.fpmenu
2017-08-23 21:44:09 -06:00
GET /get-fishnet controllers.Main.getFishnet
2017-11-29 08:55:11 -07:00
# Dev
2017-10-31 17:15:44 -06:00
GET /dev/cli controllers.Dev.cli
POST /dev/cli controllers.Dev.cliPost
POST /cli controllers.Dev.command
2017-11-29 08:55:11 -07:00
GET /dev/settings controllers.Dev.settings
POST /dev/settings/:id controllers.Dev.settingsPost(id: String)
2014-08-25 02:09:16 -06:00
# Mobile Push
2015-12-13 01:25:38 -07:00
POST /mobile/register/:platform/:deviceId controllers.Main.mobileRegister(platform: String, deviceId: String)
POST /mobile/unregister controllers.Main.mobileUnregister
2016-01-24 23:40:59 -07:00
# Pages
GET /thanks controllers.Page.thanks
GET /terms-of-service controllers.Page.tos
GET /privacy controllers.Page.privacy
GET /contact controllers.Page.contact
2016-03-04 20:00:41 -07:00
GET /swag controllers.Page.swag
2016-06-08 05:41:08 -06:00
GET /about controllers.Page.about
2016-01-24 23:40:59 -07:00
# Variants
2016-01-26 03:24:59 -07:00
GET /variant controllers.Page.variantHome
GET /variant/:key controllers.Page.variant(key)
2016-01-24 23:40:59 -07:00
# Help
GET /help/contribute controllers.Page.contribute
GET /help/master controllers.Page.master
2017-11-09 13:22:02 -07:00
POST /jslog/$id<\w{12}> controllers.Main.jslog(id: String)
POST /jsmon/:event controllers.Main.jsmon(event: String)
2015-08-15 15:04:14 -06:00
# Assets
2016-05-10 06:23:38 -06:00
GET /glyphs controllers.Main.glyphs
GET /assets/*file controllers.Assets.at(path="/public", file)
2016-09-25 12:36:20 -06:00
GET /robots.txt controllers.Main.robots