resource-virtualhost

provides virtual hosts

npm install resource-virtualhost
4 downloads in the last week
8 downloads in the last month

virtualhost

provides virtual hosts

API

properties

methods

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

README auto-generated with docs

npm loves you