# DEV PATCH-002
## Root Route Bootstrap

You are implementing Development Patch-002 for the INVEETAIRE platform.

This is NOT a feature.

This is NOT an Alpha Patch.

This patch improves developer experience only.

Do NOT modify business logic.

Do NOT refactor architecture.

---

# Current Status

Sprint 0
COMPLETE

Sprint 1
COMPLETE

Sprint 2
COMPLETE

Sprint 3
COMPLETE

Pilot-001
COMPLETE

Pilot-002
COMPLETE

Pilot-003
COMPLETE

Pilot-004
COMPLETE

Pilot-005
COMPLETE

Pilot-006
COMPLETE

Pilot-007
COMPLETE

Alpha Patch-001
COMPLETE

Alpha Patch-002
COMPLETE

DEV PATCH-001
COMPLETE

Repository Status

ALPHA BASELINE

---

# Problem

The application boots correctly.

The login page is accessible.

Example:

http://localhost/inveetaire/login

works correctly.

However,

http://localhost/inveetaire/

returns the application's custom 404 page because no root route exists.

This negatively affects local development.

---

# Objective

Implement a default root route.

This route exists ONLY as an application entry point.

No business logic.

No authentication logic.

No workspace logic.

---

# Required Behaviour

When requesting:

/

The application shall redirect to:

/login

using the existing routing / redirect mechanism.

Do NOT hardcode:

http://localhost

Do NOT hardcode:

/inveetaire

Use existing URL helper / redirect helper.

The redirect must work in:

Development

http://localhost/inveetaire/

Production

https://inveetaire.com/

without changing source code.

---

# Scope

Modify ONLY:

The global route registration.

If necessary,

modify the router bootstrap.

Do NOT modify:

Workspace

Invitation

Guest

Messaging

Operation

Authentication

Dashboard

Database

Views

Models

Services

---

# Redirect Rules

GET /

↓

302 Redirect

↓

/login

Do NOT redirect if already on /login.

Avoid redirect loops.

---

# Constraints

Do NOT:

Create landing pages

Create home pages

Implement dashboards

Implement marketing pages

Implement welcome pages

Refactor routing

Modify URL helpers unless absolutely required

Modify business modules

Modify database schema

---

# Verification

Verify:

localhost/inveetaire/

↓

redirects

↓

localhost/inveetaire/login

Verify:

Production root

↓

redirects

↓

/login

Verify:

No redirect loops.

Verify:

404 pages continue to function for unknown routes.

Verify:

PHP syntax passes.

---

# Acceptance Criteria

PASS only if:

Root route exists.

Root redirects correctly.

Redirect works in localhost subfolder.

Redirect works in production root.

No redirect loops.

Existing routes unchanged.

PHP syntax passes.

---

# Output

Provide:

1. Files modified.

2. Root route implementation.

3. Redirect workflow.

4. Verification results.

5. Acceptance checklist.

6. PHP syntax results.

Stop after implementation.

Wait for Human Approval.