fix: ruta raíz / redirige a /login
This commit is contained in:
@@ -37,6 +37,7 @@ $path = rtrim($path, '/') ?: '/';
|
||||
|
||||
// ─── Tabla de rutas ──────────────────────────────────────────────────────────
|
||||
$routes = [
|
||||
['GET', '/', fn() => (header('Location: /login') ?: exit())],
|
||||
['GET', '/health', fn() => jsonResponse(200, ['status' => 'ok', 'service' => 'bot-palmas360'])],
|
||||
|
||||
// ─── WhatsApp webhook ────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user