1 | common = require './common'
|
2 | routes = require './routes'
|
3 | middleware = require './middleware'
|
4 | models = require './models'
|
5 | controllers = require './controllers'
|
6 | middleware = require './middleware'
|
7 |
|
8 | configure = (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 |
|
15 | module.exports =
|
16 | common: common
|
17 | mocks: require '../test/server/mocks'
|
18 | configure: configure
|
19 | middleware: middleware |
\ | No newline at end of file |