Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(__init__.py): improve code readability and maintainability i…
…n FlaskMVC class and Hook class In the FlaskMVC class: - Change the variable name `view_func` to `instance_of_controller` to better reflect its purpose. - Instead of calling `view_func()` multiple times, create an instance of the controller class and register it with the hook. - Use the instance of the controller to retrieve the view function for each resource. In the Hook class: - Change the parameter name `ctrl` to `instance_of_controller` to better reflect its purpose. - Use the instance of the controller to retrieve the hook methods. These changes improve the readability and maintainability of the code by using more descriptive variable names and reducing code duplication.
- Loading branch information