GamendWeb.Features (gamend_web v1.0.1216)

Copy Markdown View Source

Toggles for the public, unauthenticated surface.

Each flag gates a listing endpoint and the matching realtime channel and browser page together, so switching one off closes the whole route rather than leaving a second way in. All default to on; a deployment that does not want third parties browsing or scraping its data turns off what it does not need.

Read through GamendWeb.Plugs.FeatureGate, which 404s a disabled route.

Summary

Functions

Whether the feature is currently on.

Top-level user.metadata keys the public user endpoints may return.

Functions

enabled?(feature)

@spec enabled?(atom()) :: boolean()

Whether the feature is currently on.

public_user_metadata_keys()

@spec public_user_metadata_keys() :: [String.t()]

Top-level user.metadata keys the public user endpoints may return.

Default-deny: an empty list — the default — strips metadata entirely. A host that wants a badge on a search result opts that one section back in rather than the whole map.