This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Controller = require('base_controller'); | |
var Application = module.exports = Controller.extend(function Application(init) { | |
init.before(function protectFromForgeryHook(ctl) { | |
ctl.protectFromForgery('13cf581adb4cd3c1cccce3604a6c044215f21679'); | |
}); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sio = require('socket.io'); | |
var fn = function () {}; | |
var http = require('http'); | |
module.exports = function (compound) { | |
var app = compound.app; | |
var server = http.createServer(app); | |
compound.server = server; | |
var io = compound.io = sio.listen(server); |
NewerOlder