UNPKG

513 Btext/coffeescriptView Raw
1common = require './common'
2routes = require './routes'
3middleware = require './middleware'
4models = require './models'
5controllers = require './controllers'
6middleware = require './middleware'
7
8configure = (app, dal) ->
9 common.extend app.models, models(dal)
10 common.extend app.controllers, controllers(app)
11 common.extend app.middleware, middleware
12
13 routes.configure app, common.rest
14
15module.exports =
16 common: common
17 mocks: require '../test/server/mocks'
18 configure: configure
19 middleware: middleware
\No newline at end of file