Subroutes
Subroutes are first-class content sections within a project. Each subroute (e.g. docs, blog, tools) has its own configuration, navigation tree, and page collection.
Overview
A subroute defines:
- Navigation — Declarative sidebar/tabs/anchors structure
- Schema — Content validation rules for pages
- Collection — Index page configuration
Endpoints
| Method | Path | Description |
|---|---|---|
POST | /subroutes | Create subroute |
GET | /subroutes | List subroutes |
GET | /subroutes/:slug | Get subroute |
PUT | /subroutes/:slug | Update subroute |
DELETE | /subroutes/:slug | Delete subroute |
GET | /subroutes/:slug/pages | List pages |
Subroute Object
{
"id": "uuid",
"project_id": "abc123",
"slug": "docs",
"name": "Documentation",
"description": "Project documentation",
"config": {
"content_type": "markdown",
"page_type": "docs",
"navigation": { ... },
"schema": { ... },
"collection": { ... }
},
"created_at": "2026-03-20T00:00:00Z",
"updated_at": "2026-03-20T00:00:00Z"
}