ensl_gathers/db/index.js
2015-08-18 10:56:35 +01:00

13 lines
No EOL
326 B
JavaScript

"use strict";
var path = require("path");
var mongoose = require("mongoose");
var config = require(path.join(__dirname, "../config/config.js"));
mongoose.connect(config.mongo.uri);
// Load models
require(path.join(__dirname, "/models/message"));
require(path.join(__dirname, "/models/session"));
module.exports = mongoose;