Permalink
Browse files

Callback on server dashboard

  • Loading branch information...
1 parent 3ff2925 commit 71581aa4599f3883fe4886a60599ae5be5c6d733 @chamerling chamerling committed Jan 23, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 server.js
View
3 server.js
@@ -3,7 +3,7 @@ var path = require('path'),
url = require('url'),
_ = require('underscore')._;
-exports.dashboard = function(settings) {
+exports.dashboard = function(settings, cb) {
var rootPath = path.dirname(module.filename),
api = require('./api'),
express = require('express'),
@@ -117,4 +117,5 @@ exports.dashboard = function(settings) {
// We make the API available for external control
this.api = api;
util.log('Server started.');
+ if (cb) cb();
};

0 comments on commit 71581aa

Please sign in to comment.