mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-27 14:33:59 -04:00
Put in basic client-side routes and created server side scoring routing file
This commit is contained in:
parent
0ed68b48d3
commit
a3b17c7d86
2 changed files with 13 additions and 0 deletions
|
@ -20,6 +20,12 @@ module.exports = class CocoRouter extends Backbone.Router
|
|||
'db/*path': 'routeToServer'
|
||||
'file/*path': 'routeToServer'
|
||||
|
||||
|
||||
#multiplayer routes
|
||||
'scoring/queue': 'routeToServer'
|
||||
'play/level/:levelID/leaderboard/:teamID/:startRank/:endRank': 'getPaginatedLevelRank'
|
||||
'play/level/:levelID/player/:playerID': 'getPlayerLevelInfo'
|
||||
|
||||
# most go through here
|
||||
'*name': 'general'
|
||||
|
||||
|
@ -27,6 +33,13 @@ module.exports = class CocoRouter extends Backbone.Router
|
|||
general: (name) ->
|
||||
@openRoute(name)
|
||||
|
||||
getPaginatedLevelRank: (levelID,teamID,startRank,endRank) ->
|
||||
return
|
||||
|
||||
getPlayerLevelInfo: (levelID,playerID) ->
|
||||
return
|
||||
|
||||
|
||||
editorModelView: (modelName, slugOrId, subview) ->
|
||||
modulePrefix = "views/editor/#{modelName}/"
|
||||
suffix = subview or (if slugOrId then 'edit' else 'home')
|
||||
|
|
0
server/routes/scoring.coffee
Normal file
0
server/routes/scoring.coffee
Normal file
Loading…
Add table
Add a link
Reference in a new issue