RewriteEngine On

# Route API access from /public if needed
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^api/(.*)$ ../api/$1 [L]

Options -Indexes