resource-virtualhost
v0.4.2
Published
provides virtual hosts
Downloads
3
Readme
virtualhost
provides virtual hosts
API
properties
methods
create (options, callback)
get (id, callback)
find (options, callback)
all (callback)
update (options, callback)
updateOrCreate (options, callback)
destroy (id, callback)
properties
provides virtual hosts
id
- type : any
host
- type : string
path
- type : string
methods
virtualhost.create(options, callback)
create a new virtualhost
options
type : object
properties
id
- type : any
host
- type : string
path
- type : string
callback
- type : function
virtualhost.get(id, callback)
get virtualhost by id
id
type : any
description : the id of the object
required : true
callback
- type : function
virtualhost.find(options, callback)
search for instances of virtualhost
options
type : object
properties
id
type : any
default :
required : false
host
type : any
default :
required : false
path
type : any
default :
required : false
callback
- type : function
virtualhost.all(callback)
gets all instances of virtualhost
callback
- type : function
virtualhost.update(options, callback)
updates a virtualhost by id
options
type : object
properties
id
- type : any
host
- type : string
path
- type : string
callback
- type : function
virtualhost.updateOrCreate(options, callback)
updates a virtualhost by id, and creates if necessary
options
type : object
properties
id
- type : any
host
- type : string
path
- type : string
callback
- type : function
virtualhost.destroy(id, callback)
destroys a virtualhost by id
id
type : string
description : the id of the object
required : true
callback
- type : function
dependencies
- connect v2.7.1
README auto-generated with docs