mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
28 lines
624 B
CoffeeScript
28 lines
624 B
CoffeeScript
|
config = require '../server_config'
|
||
|
winston = require 'winston'
|
||
|
mongoose = require 'mongoose'
|
||
|
async = require 'async'
|
||
|
errors = require './errors'
|
||
|
aws = require 'aws-sdk'
|
||
|
db = require './db'
|
||
|
mongoose = require 'mongoose'
|
||
|
events = require 'events'
|
||
|
queues = require 'queue'
|
||
|
|
||
|
module.exports.connectToScoringQueue = -> queues.initializeScoringTaskQueue() unless queues.scoringTaskQueue?
|
||
|
|
||
|
module.exports.setupRoutes = (app) ->
|
||
|
return
|
||
|
|
||
|
|
||
|
module.exports.setupRoutes = (app) ->
|
||
|
app.all '/multiplayer/*', (req, res) ->
|
||
|
unless scoringTaskQueue?
|
||
|
|
||
|
errors.custom res, 503, "Currently initializing scoring queue"
|
||
|
|
||
|
return
|
||
|
|
||
|
|
||
|
|