codecombat/server/routes/base.coffee

10 lines
248 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-06-30 22:16:26 -04:00
log.debug "route module #{route} setup"