Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Callback on dashboard #41

Merged
merged 1 commit into from

2 participants

@chamerling
Owner

Add callback on dashboard call so that the caller can react when started

@obazoud obazoud merged commit ee9cb17 into from
@chamerling
Owner

Thanks ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 23, 2013
  1. @chamerling
This page is out of date. Refresh to see the latest.
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();
};
Something went wrong with that request. Please try again.