Commit Graph

3 Commits

Author SHA1 Message Date
dereklseitz
9f47800032 fix: move call for formSecurityCheck to before express validator array in contactRoutes.js 2025-08-20 08:32:35 -05:00
dereklseitz
0b48a79bec fix: Resolve TypeError by correcting module dependency injection
This commit fixes a TypeError that occurred because the contactRoutes
module was being initialized before the contactController module.

The fix involves:
- Swapping the initialization order in server.js so the contactController is
  initialized before contactRoutes.
- Modifying contactRoutes.js to accept the initialized contactController
  as a dependency, rather than requiring it on its own.
2025-08-17 17:59:44 -05:00
dereklseitz
562d831ddf refactor: Convert monolithic app to modular architecture
This commit refactors the entire codebase from a monolithic structure to a
modular one. Key changes include:

-   Extracting core components (e.g., user authentication, data processing,
    API handlers) into their own distinct modules.
-   Implementing a new directory structure to support a modular design.
-   Updating all internal references and import paths to reflect the new
    architecture.

The new structure improves maintainability, scalability, and allows for
easier independent development of each module in the future.
2025-08-17 16:54:07 -05:00