Back to Expressjs

App Disabled

_includes/api/en/4x/app-disabled.md

latest321 B
Original Source
<h3 id='app.disabled'>app.disabled(name)</h3>

Returns true if the Boolean setting name is disabled (false), where name is one of the properties from the app settings table.

js
app.disabled('trust proxy')
// => true

app.enable('trust proxy')
app.disabled('trust proxy')
// => false