Class: Controller

Controller()

Cette classe est instanciée par Component#controller

Constructor

new Controller()

Source:

Methods

all(pathopt, cb) → {Controller}

Réponse à une méthode ALL

Parameters:
Name Type Attributes Description
path String <optional>

le chemin absolu ou relatif au controller .

cb Action~callback

La callback

Source:
Fires:
Returns:

Chaînable

Type
Controller

delete(pathopt, cb) → {Controller}

Réponse à une méthode DELETE

Parameters:
Name Type Attributes Description
path String <optional>

le chemin absolu ou relatif au controller .

cb Action~callback

La callback

Source:
Fires:
Returns:

Chaînable

Type
Controller

get(pathopt, cb) → {Controller}

Réponse à une méthode GET

Parameters:
Name Type Attributes Description
path String <optional>

le chemin absolu ou relatif au controller .

cb Action~callback

La callback

Source:
Fires:
Returns:

Chaînable

Type
Controller

options(pathopt, cb) → {Controller}

Réponse à une méthode OPTIONS

Parameters:
Name Type Attributes Description
path String <optional>

le chemin absolu ou relatif au controller .

cb Action~callback

La callback

Source:
Fires:
Returns:

Chaînable

Type
Controller

post(pathopt, cb) → {Controller}

Réponse à une méthode POST

Parameters:
Name Type Attributes Description
path String <optional>

le chemin absolu ou relatif au controller .

cb Action~callback

La callback

Source:
Fires:
Returns:

Chaînable

Type
Controller

put(pathopt, cb) → {Controller}

Réponse à une méthode PUT

Parameters:
Name Type Attributes Description
path String <optional>

le chemin absolu ou relatif au controller .

cb Action~callback

La callback

Source:
Fires:
Returns:

Chaînable

Type
Controller

serve(pathopt, options) → {Controller}

Publie l'ensemble des fichiers d'un dossier physique.

Parameters:
Name Type Attributes Description
path String <optional>

le chemin absolu ou relatif au controller .

options String | Object

Si c'est une string ça doit être le chemin physique, sinon un objet avec fsPath ou d'autres propriétés qui seront passées à express.static

Source:
Returns:

Chaînable

Type
Controller