# ----------------------------------------------------------------------
# Apache Rewrite Rules for La Passion Resort PHP Backend Routing
# This allows clean URLs without .php extensions (identical to Express API)
# ----------------------------------------------------------------------

RewriteEngine On

# Route /api/booking/availability -> booking/availability.php
RewriteRule ^api/booking/availability$ booking/availability.php [L,QSA]

# Route /api/booking/extras -> booking/extras.php
RewriteRule ^api/booking/extras$ booking/extras.php [L,QSA]

# Route /api/booking/insert -> booking/insert.php
RewriteRule ^api/booking/insert$ booking/insert.php [L,QSA]

# Route /api/telegram/cleaning -> telegram/cleaning.php
RewriteRule ^api/telegram/cleaning$ telegram/cleaning.php [L,QSA]

# Route /api/telegram/dining -> telegram/dining.php
RewriteRule ^api/telegram/dining$ telegram/dining.php [L,QSA]

# Route /api/telegram/status -> telegram/status.php
RewriteRule ^api/telegram/status$ telegram/status.php [L,QSA]

# Route /api/gemini/concierge -> gemini/concierge.php
RewriteRule ^api/gemini/concierge$ gemini/concierge.php [L,QSA]

# Route /api/webhooks/telegram/cleaning -> webhooks/telegram_cleaning.php
RewriteRule ^api/webhooks/telegram/cleaning$ webhooks/telegram_cleaning.php [L,QSA]

# Route /api/webhooks/telegram/dining -> webhooks/telegram_dining.php
RewriteRule ^api/webhooks/telegram/dining$ webhooks/telegram_dining.php [L,QSA]
