Application Modules

Feature Flags

Query /api/features to detect available rescile editions and adapt your application UI accordingly.

Feature Flags

Different environments may run different editions of rescile (e.g., Community Edition vs. Enterprise Edition). Your application can query the /api/features endpoint to dynamically adjust its behavior or UI based on the available features.

const response = await fetch('/api/features');
const features = await response.json();

if (!features.includes('admin_assets')) {
  document.getElementById('app-content').innerHTML = 'Enterprise Feature Required';
}