Skip to content

Commit

Permalink
Access all grasshopping servers through grasshopper object
Browse files Browse the repository at this point in the history
  • Loading branch information
Elias Klughammer authored and cskr committed Oct 16, 2010
1 parent c6044f3 commit b7d9653
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions grasshopper/lib/routes.js
Expand Up @@ -85,6 +85,10 @@ exports.api.getSecureController = function(method, path) {
return secureRoutes[method + ':' + path];
};

exports.api.servers = function() {
return servers;
};

function redirectSecure() {
var hostHeader = this.request.headers['host'];
var redirectHost = hostHeader;
Expand Down

0 comments on commit b7d9653

Please sign in to comment.