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