# TidePoolUI Frontend
# Serve static files, proxy API requests to backend

RewriteEngine On

# Serve existing files directly
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]

# API requests go to backend
RewriteRule ^api/(.*)$ /backend/api/index.php [QSA,L]
