<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    
    # Allow API requests
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^api/(.*)$ api/endpoints.php [QSA,L]
</IfModule>