codecombat/server/routes/base.coffee

9 lines
247 B
CoffeeScript
Raw Normal View History

2014-02-04 17:08:20 -05:00
log = require 'winston'
routes = require('../commons/mapping').routes
module.exports.setup = (app) ->
for route in routes
do (route) ->
module = require('../'+route)
module.setup app
2014-02-04 17:08:20 -05:00
log.debug "route module #{route} setup"