Skip to content
Myr

Using Plugin.init() to add methods to Request

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Previously doing it on require() which is not ideal, we only really want to add these methods when we use() the plugin

authored by visionmedia · committed by visionmedia · parent 78d538a · Browse files · 3 files+69 added−68 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+69 added−68 removed

  • other:+69 added−68 removed

3 files+69 added−68 removed

modified:lib/express/plugins/cookie.js+33 added-32 removed
modified:lib/express/plugins/hooks.js+5 added-4 removed
modified:lib/express/plugins/redirect.js+31 added-32 removed