GameServerWeb.Plugs.FeatureGate (game_server_web v1.0.935)

Copy Markdown

Plug that gates routes behind environment-variable feature flags.

Usage

plug GameServerWeb.Plugs.FeatureGate, env: "OPENAPI_ENABLED", default: true

When the feature is disabled (env var is "false" / "0" / "no"), requests are rejected with 404 Not Found.