ensl_gathers/db/index.js
2015-09-21 22:59:00 +01:00

15 lines
No EOL
433 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"));
require(path.join(__dirname, "/models/profile"));
require(path.join(__dirname, "/models/archivedGather"));
module.exports = mongoose;