overleaf/services/web/app/coffee/infrastructure/mongojs.coffee
2014-02-12 10:23:40 +00:00

6 lines
186 B
CoffeeScript

Settings = require "settings-sharelatex"
mongojs = require "mongojs"
db = mongojs.connect(Settings.mongo.url, ["projects", "users"])
module.exports =
db: db
ObjectId: mongojs.ObjectId