codecombat/server/routes/base.coffee
2014-07-01 12:23:22 +08:00

9 lines
248 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"