Demo
layout.tsx
docs/[...slug]/page.tsx

Catch-all: [...slug]

params.slug = ["api","users","create"]

Segments: 3 • Path: /api/users/create

Create User API

Learn how to create users via the API. This demonstrates catch-all routes with multiple segments.

← Back to Overview