Skip to content
Browse files

Updated appdomains to proper API

  • Loading branch information...
1 parent 7bb3a26 commit 40019e10b17f6b72be710eb3acab24fcb1fc1908 @davglass davglass committed Mar 11, 2011
Showing with 13 additions and 3 deletions.
  1. +8 −2 nodester.js
  2. +5 −1 package.json
View
10 nodester.js
@@ -154,18 +154,24 @@ nodester.prototype.appnpm_uninstall = function (name, package, cb) {
this.appnpm_handler(name, package, "uninstall", cb);
};
+/*
nodester.prototype.appdomain_handler = function (name, domain, action, cb) {
this.post('appdomains', { appname: name, action: action, domain: domain }, cb);
};
+nodester.prototype.appdomain_delete = function (name, domain, cb) {
+ this.appdomain_handler(name, domain, "delete", cb);
+};
+*/
nodester.prototype.appdomain_add = function (name, domain, cb) {
- this.appdomain_handler(name, domain, "add", cb);
+ this.post('appdomains', { appname: name, domain: domain }, cb);
};
nodester.prototype.appdomain_delete = function (name, domain, cb) {
- this.appdomain_handler(name, domain, "delete", cb);
+ this.del('appdomains', { appname: name, domain: domain }, cb);
};
+
nodester.prototype.appdomains = function(cb) {
this.get('appdomains', cb);
};
View
6 package.json
@@ -1,10 +1,14 @@
{
"name": "nodester-api",
"description": "A module to allow interaction with the http://nodester.com/ platform.",
- "version": "0.1.6",
+ "version": "0.1.7",
"homepage": "http://nodester.com/",
"repository": "git://github.com/nodester/nodester-api.git",
"author": "Daniel Bartlett <dan@f-box.org> (http://danb-uk.net/)",
+ "contributors": [
+ "Dav Glass <davglass@gmail.com> @davglass",
+ "Chris Matthieu <chris@matthieu.us>"
+ ],
"engines": {
"node": "*"
},

0 comments on commit 40019e1

Please sign in to comment.
Something went wrong with that request. Please try again.