codecombat/server/routes/base.coffee
Sébastien Moratinos f58acf0fbb rename some variables
2014-02-04 23:28:21 +01:00

9 lines
No EOL
247 B
CoffeeScript

log = require 'winston'
routes = require('../commons/mapping').routes
module.exports.setup = (app) ->
for route in routes
do (route) ->
module = require('../'+route)
module.setup app
log.debug "route module #{route} setup"