Flip routing: customer portal at /, admin at /admin #56

Closed
opened 2026-03-19 02:05:47 +00:00 by ghost · 0 comments
ghost commented 2026-03-19 02:05:47 +00:00 (Migrated from github.com)

Context

Asking customers to navigate to /portal is a non-starter (ref: GRO-47). The customer-facing experience should live at the root URL.

Decision

Flip the routing:

  • Customer portal/ (root) — this is what customers see when they visit the business URL
  • Staff admin/admin/* — staff navigate here to manage appointments, clients, etc.

This gives customers clean, shareable booking links (groomer.com/ instead of groomer.com/portal) while staff simply bookmark /admin.

Implementation

  1. Move all current admin routes under /admin prefix (appointments, clients, services, staff, invoices, group-bookings, reports, book)
  2. Mount the customer portal at / (root)
  3. Update the admin nav links to include the /admin prefix
  4. Keep the "Customer Portal" link in admin nav pointing to / so staff can preview what customers see
  5. Update any existing tests/e2e that reference the old paths

Notes

  • Subdomain support (e.g., portal.groomer.com vs admin.groomer.com) is a future enhancement, not needed now
  • No auth changes needed for this PR — just routing
## Context Asking customers to navigate to `/portal` is a non-starter (ref: GRO-47). The customer-facing experience should live at the root URL. ## Decision Flip the routing: - **Customer portal** → `/` (root) — this is what customers see when they visit the business URL - **Staff admin** → `/admin/*` — staff navigate here to manage appointments, clients, etc. This gives customers clean, shareable booking links (`groomer.com/` instead of `groomer.com/portal`) while staff simply bookmark `/admin`. ## Implementation 1. Move all current admin routes under `/admin` prefix (appointments, clients, services, staff, invoices, group-bookings, reports, book) 2. Mount the customer portal at `/` (root) 3. Update the admin nav links to include the `/admin` prefix 4. Keep the "Customer Portal" link in admin nav pointing to `/` so staff can preview what customers see 5. Update any existing tests/e2e that reference the old paths ## Notes - Subdomain support (e.g., `portal.groomer.com` vs `admin.groomer.com`) is a future enhancement, not needed now - No auth changes needed for this PR — just routing
This repo is archived. You cannot comment on issues.
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: groombook/app#56