What problem does it solve?
Standardized API routing patterns reduce the complexity of wiring endpoints, ensure consistent route organization, and simplify maintenance across miolo applications.
Core Features & Use Cases
- Route Organization: Routes are organized under src/server/routes by domain/feature with a standard file structure and registration flow.
- Route Registration Pattern: Single export of default route arrays, with groups containing prefix and routes, and each route specifying method, url, auth, and callback.
- Creating Route Handlers & Validation: Handlers follow the r_ prefix conventions, access request data, and optionally validate inputs with Joi.
- Authentication & Security: Supports per-route authentication settings and consistent user context usage.
- Multi-file Organization & Best Practices: Encourages modular route organization across files and adherence to conventions, logging, and error handling.
Quick Start
Create and wire up a new API route by following the standard miolo routing pattern in src/server/routes.