ensl_gathers/db/index.js

14 lines
376 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-27 18:42:45 +00:00
require(path.join(__dirname, "/models/profile"));
2015-08-05 00:41:43 +00:00
module.exports = mongoose;