ensl_gathers/db/index.js

13 lines
326 B
JavaScript
Raw Normal View History

2015-08-05 00:41:43 +00:00
"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"));
2015-08-18 09:56:35 +00:00
require(path.join(__dirname, "/models/session"));
2015-08-05 00:41:43 +00:00
module.exports = mongoose;