lila/conf/routes

238 lines
14 KiB
Plaintext
Raw Normal View History

2013-03-18 17:36:22 -06:00
# Lobby
GET / controllers.Lobby.home
2013-05-08 15:34:37 -06:00
GET /lobby/socket controllers.Lobby.socket
2013-05-24 08:37:24 -06:00
GET /timeline controllers.Lobby.timeline
2013-05-28 16:44:49 -06:00
GET /timeline/more controllers.Lobby.timelineMore
2013-03-18 17:36:22 -06:00
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
GET /tv/stream controllers.Tv.stream
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)
GET /@/:username/followers controllers.Relation.followers(username: String)
GET /@/:username/suggestions controllers.Relation.suggest(username: String)
2013-03-20 08:23:41 -06:00
# User
GET /@/:username/opponents controllers.User.opponents(username: String)
2013-05-08 09:41:12 -06:00
POST /@/:username/export controllers.User.export(username: String)
GET /@/:username/mod controllers.User.mod(username: String)
POST /@/:username/evaluate controllers.User.evaluate(username: String)
GET /@/:username/mini controllers.User.showMini(username: String)
2013-05-08 09:41:12 -06:00
GET /@/:username/:filterName controllers.User.showFilter(username: String, filterName: String, page: Int ?= 1)
2013-03-20 08:23:41 -06:00
GET /@/:username controllers.User.show(username: String)
2013-05-04 17:12:53 -06:00
GET /people controllers.User.list(page: Int ?= 1)
GET /people/online controllers.User.online
2013-05-06 15:52:48 -06:00
GET /people/autocomplete controllers.User.autocomplete
2014-02-01 13:40:05 -07:00
GET /leaderboard controllers.User.leaderboard
2013-10-20 07:46:29 -06:00
# Account
GET /account/passwd controllers.Account.passwd
POST /account/passwd controllers.Account.passwdApply
GET /account/close controllers.Account.close
POST /account/closeConfirm controllers.Account.closeConfirm
GET /account/profile controllers.Account.profile
POST /account/profile controllers.Account.profileApply
#Site
2013-04-10 05:02:32 -06:00
GET /socket controllers.Main.websocket
# Game
2013-05-06 19:57:42 -06:00
GET /games controllers.Game.realtime
GET /games/all controllers.Game.all(page: Int ?= 1)
GET /games/checkmate controllers.Game.checkmate(page: Int ?= 1)
GET /games/bookmark controllers.Game.bookmark(page: Int ?= 1)
GET /games/popular controllers.Game.popular(page: Int ?= 1)
GET /games/analysed controllers.Game.analysed(page: Int ?= 1)
GET /games/imported controllers.Game.imported(page: Int ?= 1)
2013-12-23 11:56:30 -07:00
# Search
2013-05-09 17:00:27 -06:00
GET /games/search controllers.Game.search(page: Int ?= 1)
2013-12-23 11:56:30 -07:00
# Puzzle
GET /training controllers.Puzzle.home
GET /training/new controllers.Puzzle.newPuzzle
GET /training/:id controllers.Puzzle.show(id: Int)
POST /training/:id/attempt controllers.Puzzle.attempt(id: Int)
POST /training/:id/vote controllers.Puzzle.vote(id: Int)
# Round
2013-03-25 11:52:18 -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)
2013-05-07 17:44:26 -06:00
GET /$gameId<[\w\-]{8}>/$color<white|black>/socket controllers.Round.websocketWatcher(gameId: String, color: String)
GET /$gameId<[\w\-]{8}>/s.js controllers.Round.signedJs(gameId: String)
2013-05-07 17:44:26 -06:00
GET /$fullId<[\w\-]{12}>/socket controllers.Round.websocketPlayer(fullId: String)
GET /$gameId<[\w\-]{8}>/$color<white|black>/table controllers.Round.tableWatcher(gameId: String, color: String)
GET /$fullId<[\w\-]{12}>/table controllers.Round.tablePlayer(fullId: String)
2013-12-24 03:47:52 -07:00
GET /$gameId<[\w\-]{8}>/$color<white|black>/end controllers.Round.endWatcher(gameId: String, color: String)
GET /$fullId<[\w\-]{12}>/end controllers.Round.endPlayer(fullId: String)
2013-05-31 12:19:59 -06:00
GET /$gameId<[\w\-]{8}>/continue/:mode controllers.Round.continue(gameId: String, mode: String)
2013-07-21 09:29:35 -06:00
GET /$gameId<[\w\-]{8}>/edit controllers.Editor.game(gameId: String)
2013-12-23 11:56:30 -07:00
# Tournament
2013-12-23 11:56:30 -07:00
GET /tournament controllers.Tournament.home
2013-05-12 09:02:45 -06:00
GET /tournament/reload controllers.Tournament.homeReload
GET /tournament/new controllers.Tournament.form
POST /tournament/new controllers.Tournament.create
2013-12-23 11:56:30 -07:00
GET /tournament/$id<[\w\-]{8}> controllers.Tournament.show(id: String)
2013-05-12 09:02:45 -06:00
GET /tournament/$id<[\w\-]{8}>/socket controllers.Tournament.websocket(id: String)
POST /tournament/$id<[\w\-]{8}>/join controllers.Tournament.join(id: String)
2013-07-30 15:02:12 -06:00
GET /tournament/$id<[\w\-]{8}>/join/password controllers.Tournament.joinPasswordForm(id: String)
POST /tournament/$id<[\w\-]{8}>/join/password controllers.Tournament.joinPassword(id: String)
2013-05-12 09:02:45 -06:00
POST /tournament/$id<[\w\-]{8}>/withdraw controllers.Tournament.withdraw(id: String)
GET /tournament/$id<[\w\-]{8}>/reload controllers.Tournament.reload(id: String)
POST /tournament/$id<[\w\-]{8}>/early-start controllers.Tournament.earlyStart(id: String)
2013-12-23 11:56:30 -07:00
GET /tournament/faq controllers.Tournament.faq
# 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
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)
# Analyse
2014-02-01 11:45:02 -07:00
POST /$gameId<[\w\-]{8}>/$color<white|black>/computer-analysis controllers.Analyse.computer(gameId: String, color: String)
GET /$gameId<[\w\-]{8}>/pgn controllers.Analyse.pgn(gameId: String)
GET /$gameId<[\w\-]{8}>/fen controllers.Analyse.fen(gameId: String)
2013-12-23 11:56:30 -07:00
2013-10-19 09:22:32 -06:00
# Pref
POST /pref/:name controllers.Pref.set(name: String)
2013-10-21 04:33:39 -06:00
GET /account/preferences controllers.Pref.form
POST /account/preferences controllers.Pref.formApply
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
2013-06-05 05:55:16 -06:00
GET /setup/friend controllers.Setup.friendForm(username: Option[String] ?= None)
POST /setup/friend controllers.Setup.friend(username: Option[String] ?= None)
2013-06-05 06:54:33 -06:00
POST /setup/decline controllers.Setup.decline(gameId: String)
2013-06-05 05:55:16 -06:00
GET /$fullId<[\w\-]{12}>/await controllers.Setup.await(fullId: String, username: Option[String] ?= None)
2013-05-08 20:00:13 -06:00
GET /$fullId<[\w\-]{12}>/cancel controllers.Setup.cancel(fullId: String)
POST /$id<[\w\-]{8}>/join controllers.Setup.join(id: String)
GET /setup/hook controllers.Setup.hookForm
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
# I18n
2013-04-09 12:58:34 -06:00
GET /translation/contribute controllers.I18n.contribute
2013-05-08 10:15:55 -06:00
GET /translation/form/:lang controllers.I18n.translationForm(lang: String)
POST /translation/form/:lang controllers.I18n.translationPost(lang: String)
GET /translation/fetch/:from controllers.I18n.fetch(from: Int)
POST /translation/hideCalls controllers.I18n.hideCalls
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
GET /logout controllers.Auth.logout
GET /signup controllers.Auth.signup
POST /signup controllers.Auth.signupPost
2013-12-22 06:15:02 -07:00
POST /new-password controllers.Auth.newPassword
2013-12-23 11:56:30 -07:00
# Mod
POST /mod/:username/engine controllers.Mod.engine(username: String)
POST /mod/:username/troll controllers.Mod.troll(username: String)
POST /mod/:username/ban controllers.Mod.ban(username: 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)
POST /mod/:ip/ipban controllers.Mod.ipban(ip: String)
GET /mod/log controllers.Mod.log
2013-12-23 11:56:30 -07:00
# Wiki
GET /wiki controllers.Wiki.home
GET /wiki/:slug controllers.Wiki.show(slug: String)
2013-12-23 11:56:30 -07:00
# AI
2013-05-08 08:34:55 -06:00
GET /ai/stockfish/play controllers.Ai.playStockfish
GET /ai/stockfish/analyse controllers.Ai.analyseStockfish
2013-06-11 18:33:15 -06:00
GET /ai/stockfish/load controllers.Ai.loadStockfish
2013-12-23 11:56:30 -07:00
# Bookmark
2013-05-07 17:44:26 -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/: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/new controllers.ForumPost.create(categSlug: String, slug: String, page: Int ?= 1)
POST /forum/:categSlug/delete/:id controllers.ForumPost.delete(categSlug: String, 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
2013-05-28 15:15:13 -06:00
GET /inbox/preview controllers.Message.preview
2013-05-06 15:52:48 -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
# Notification
2013-03-26 04:04:13 -06:00
DELETE /notification/$id<[\w]{8}> controllers.Notification.remove(id)
2013-05-06 19:57:42 -06:00
2013-05-31 15:48:04 -06:00
# Paste
GET /paste controllers.Importer.importGame
POST /paste controllers.Importer.sendGame
2013-07-21 06:27:47 -06:00
# Edit
2013-07-21 09:29:35 -06:00
GET /editor controllers.Editor.index(fen: String = "")
GET /editor/*fen controllers.Editor.index(fen: String)
2013-12-23 11:56:30 -07:00
# Monitor
2013-04-09 12:58:34 -06:00
GET /monitor controllers.Monitor.index
2013-05-08 12:30:55 -06:00
GET /monitor/socket controllers.Monitor.websocket
GET /monitor/status controllers.Monitor.status
# Report
GET /report controllers.Report.form
POST /report controllers.Report.create
GET /report/thanks controllers.Report.thanks
2013-07-27 14:55:29 -06:00
GET /report/list controllers.Report.list
POST /report/:id/process controllers.Report.process(id: String)
2013-12-30 19:00:56 -07:00
# API
2014-01-08 17:06:20 -07:00
GET /api/user controllers.Api.users
2013-12-30 19:00:56 -07:00
GET /api/user/:id controllers.Api.user(id: String)
2014-01-07 18:43:20 -07:00
GET /api/game controllers.Api.games
2014-01-27 15:20:08 -07:00
GET /api/analysis controllers.Api.analysis
2014-02-18 15:41:05 -07:00
GET /api/analysis/:id controllers.Api.oneAnalysis(id: String)
POST /api/puzzle controllers.Puzzle.importBatch
2013-12-30 19:00:56 -07:00
2013-04-09 12:58:34 -06:00
# Misc
POST /cli controllers.Cli.command
2013-05-04 17:12:53 -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
2014-02-01 12:42:39 -07:00
GET /irc controllers.Main.irc
2013-10-16 10:18:01 -06:00
GET /stream controllers.Main.stream
2014-02-24 14:55:06 -07:00
GET /thanks controllers.Main.thanks
2013-04-09 12:58:34 -06:00
# Assets
GET /assets/*file controllers.Assets.at(path="/public", file)