swagger-express icon indicating copy to clipboard operation
swagger-express copied to clipboard

The app.configure() function has been removed in Express 4

Open xx7y7xx opened this issue 9 years ago • 3 comments

I saw app.configure() was used in README.md and example/app.js. But in the latest version of Express (4.x), The configure function was removed.

https://expressjs.com/en/guide/migrating-4.html#other-changes

The app.configure() function has been removed. Use the process.env.NODE_ENV or app.get('env') function to detect the environment and configure the app accordingly.

xx7y7xx avatar Oct 21 '16 13:10 xx7y7xx

+1

TangMonk avatar Jan 03 '17 12:01 TangMonk

+1

gusgard avatar Apr 06 '17 19:04 gusgard

Yeah, please update the example setup, newcomer's mind will blow up

rkmax avatar Jan 30 '18 14:01 rkmax