         @app.get '/api', (req, res) => res.json ressources
         @app.options /.*/, (req, res) => res.send 200
 
+    # Define all the models.
     defineAllModels : () =>
         modelsPath  = Path.join __dirname, '../models'
         modelsNames = Fs.readdirSync modelsPath

        do @defineAllRoutes
        @configured = true

    start       : () =>
        @db.on 'connected', () =>
            do @configure if not @configured

                @models[name]   = @db.define name, ModelDef
                AfterModelDef @models[name]

    # Initialize REST API context.
    configure       : () =>
        @app.set 'port', Config.Restapi.Port
        @app.use Express.logger 'dev'
