Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Module Structure #21

Merged
merged 2 commits into from
Jan 19, 2024
Merged

refactor: Module Structure #21

merged 2 commits into from
Jan 19, 2024

Conversation

edwinhern
Copy link
Owner

In this refactor, we simplified the module structure by integrating the Controller functionality directly into the Router files. This decision was driven by the observation that using separate Controller classes required initializing these classes and managing multiple dependencies for initialization. To streamline this process and enhance the maintainability of our code, we transitioned to a more functional approach.

Key Changes:

Controller and Router Integration: Controller logic is now embedded within the Router files. This reduces the overhead of managing separate files and class initializations, making it easier to add new functions and routes.
Functional Approach: Shifted from class-based Controllers to a functional style in Router files. This makes the code more straightforward and reduces the complexity involved in setting up new modules.

To Be Decided (TBD):

API Documentation Generator: We are considering the implementation of an API documentation generator. This tool would automatically generate a user-friendly UI to interact with our API endpoints, enhancing the developer experience and aiding in API testing and integration.

@edwinhern edwinhern added the enhancement New feature or request label Jan 19, 2024
@edwinhern edwinhern self-assigned this Jan 19, 2024
Copy link

render bot commented Jan 19, 2024

@edwinhern edwinhern merged commit a129fbb into master Jan 19, 2024
5 checks passed
@edwinhern edwinhern deleted the refactor/ModuleStructure branch January 19, 2024 17:29
@edwinhern
Copy link
Owner Author

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant