Scribbie-Notes / notes-app

24 stars 70 forks source link

Readability: Refactor Backend File Structure #248

Open RishabhRawatt opened 7 hours ago

RishabhRawatt commented 7 hours ago

Issue Template

Description

Currently, the backend file structure has all routes written in one file without any separation of controllers and middleware. This makes the codebase hard to maintain and extend. The current backend file structure has all routes written in a single file. There is no separation of controllers and middleware.

Proposed Solution

  1. Separate routes into distinct files/folders.
  2. Create separate controllers for handling different routes.
  3. Implement middleware in separate files to improve code modularity and maintainability.

Describe what you expected to happen.

Separate routes, controllers, and middleware into distinct files and folders for better organization and maintainability.

RishabhRawatt commented 7 hours ago

/ assign i would love to fix this whole code structure and readability