# FORTUNAE PDV WEB — controle/api/.htaccess
# Permite acesso direto a arquivos PHP na pasta api

Options -Indexes
Options -MultiViews

# Permite execução de PHP
<FilesMatch "\.php$">
    Require all granted
</FilesMatch>

# Impede acesso a arquivos sensíveis
<FilesMatch "(qz_sign|private|key|cert|pem)\.php$">
    Require all denied
</FilesMatch>

# Libera especificamente o logo_emitente.php e gerar_qr.php
<FilesMatch "^(logo_emitente|gerar_qr)\.php$">
    Require all granted
</FilesMatch>
