-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
Open
Labels
Description
The interface app.set(<name with space>, <value>)
feels a odd for setting values in a JavaScript framework. Also, its counterpart app.get(<name>)
is a confusing twin of app.get(path, callback [, callback ...])
, which is a router method.
I am proposing to implement application settings using getter-setter interfaces.
app.settings.trustProxy = true;
And get rid of app.get(<name>)
.
Super major change, I know, but the next major version is a good time to make these interface improvements.
Related issues
js-kyle