- Created comprehensive documentation files for backend services, detailing API endpoints, database access, authentication, and middleware. - Added documentation for Rose UI components and custom FormKit components, including descriptions and usage. - Documented database models defined in Prisma, outlining core and supporting models with their fields and relationships. - Established development guidelines for component and form development, state management, API development, and styling. - Included details on FormKit integration for form handling, plugins, and the form builder feature. - Provided an overview of the project structure, key configuration files, and routing system with main routes and middleware usage. - Enhanced state management documentation with key stores and usage guidelines for Pinia.
38 lines
1.2 KiB
Plaintext
38 lines
1.2 KiB
Plaintext
---
|
|
description:
|
|
globs:
|
|
alwaysApply: false
|
|
---
|
|
# Routing
|
|
|
|
The project uses Nuxt 3's file-based routing system.
|
|
|
|
## Main Routes
|
|
|
|
- **[/pages/index.vue](mdc:pages/index.vue)**: Homepage
|
|
- **Authentication**:
|
|
- **[/pages/login](mdc:pages/login)**: User login
|
|
- **[/pages/register](mdc:pages/register)**: New user registration
|
|
- **[/pages/forgot-password](mdc:pages/forgot-password)**: Password reset request
|
|
- **[/pages/reset-password](mdc:pages/reset-password)**: Password reset
|
|
- **[/pages/logout](mdc:pages/logout)**: User logout
|
|
- **Application**:
|
|
- **[/pages/dashboard](mdc:pages/dashboard)**: User dashboard
|
|
- **[/pages/form-builder](mdc:pages/form-builder)**: Form building interface
|
|
- **[/pages/devtool](mdc:pages/devtool)**: Developer tools
|
|
|
|
## Route Guards
|
|
|
|
Authentication is managed through middleware:
|
|
- Check the [middleware](mdc:middleware) directory for route protection
|
|
- Authenticated routes are guarded from unauthorized access
|
|
- User roles determine access to specific features
|
|
|
|
## Layouts
|
|
|
|
Routes can use different layouts:
|
|
- Default layout with navigation sidebar
|
|
- Empty layout for authentication pages
|
|
- Custom layouts for specific features
|
|
|