Module: controllers/imposterController

The controller that gets and deletes single imposters

Source:

Methods

del(request, response) → {Object}

The function responding to DELETE /imposters/:port

Parameters:
Name Type Description
request Object

the HTTP request

response Object

the HTTP response

Source:
Returns:

A promise for testing

Type
Object

get(request, response)

The function responding to GET /imposters/:port

Parameters:
Name Type Description
request Object

the HTTP request

response Object

the HTTP response

Source:

(inner) create(imposters) → {Object}

Creates the imposter controller

Parameters:
Name Type Description
imposters Object

the map of ports to imposters

Source:
Returns:
Type
Object