feat: Refactor AST generation routes workflow
- Introduced a comprehensive data model for route definitions, parameters, and validation rules. - Established component interfaces for route parsing, comment parsing, import resolution, route building, validation, and rendering. - Developed a detailed implementation plan outlining execution flow, user requirements, and compliance with design principles. - Created a quickstart guide to assist users in utilizing the refactored system effectively. - Conducted thorough research on existing architecture, identifying key improvements and establishing a refactoring strategy. - Specified functional requirements and user scenarios to ensure clarity and testability. - Generated a task list for implementation, emphasizing test-driven development and parallel execution where applicable.
This commit is contained in:
@@ -103,7 +103,7 @@ func commandGenRouteE(cmd *cobra.Command, args []string) error {
|
||||
}
|
||||
|
||||
routeGroups := lo.GroupBy(routes, func(item route.RouteDefinition) string {
|
||||
return filepath.Dir(item.Path)
|
||||
return filepath.Dir(item.FilePath)
|
||||
})
|
||||
|
||||
for path, routes := range routeGroups {
|
||||
|
||||
Reference in New Issue
Block a user