Skip to content

Commit

Permalink
Callback on server dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
chamerling committed Jan 23, 2013
1 parent 3ff2925 commit 71581aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server.js
Expand Up @@ -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'),
Expand Down Expand Up @@ -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.