Skip to content

Routing

Understand how aincraft handles routing in your projects.

aincraft uses file-based routing similar to modern frameworks.

Create dynamic routes by using square brackets in file names:

guides/[id].md

Organize your routes hierarchically:

guides/
├── overview.md
├── configuration.md
└── advanced/
└── custom-routing.md

Protect your routes with authentication and authorization.

Learn advanced routing patterns and best practices.