Skip to content

Instantly share code, notes, and snippets.

View jwerle's full-sized avatar
🔨
Working on @socketsupply/socket

Joseph Werle jwerle

🔨
Working on @socketsupply/socket
View GitHub Profile
var app = {}
!function (app) {
// container to push booleans
// for each event to indicate whether
// the `app` is ready
var isReady = [];
// the ready stack to house
// all of the callbacks pushed
var mongoose = require('mongoose'),
Config = mongoose.model('Config')
exports.create = function(req, res) {
var conf = new Config(req.body);
console.log(conf)
conf.save(function(err) {