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

Code Refactoring Needed for api.py #232

Open
suchithh opened this issue Feb 28, 2025 · 2 comments
Open

Code Refactoring Needed for api.py #232

suchithh opened this issue Feb 28, 2025 · 2 comments
Labels

Comments

@suchithh
Copy link
Contributor

Problem Description

The api.py file has grown to over 500 lines with many responsibilities mixed together. This creates several issues potentially making managing this file much harder.

Proposed Solution

Refactor into multiple modules following a more structured approach as per domain:

  • routes/product.py - Product-related endpoints
  • routes/auth.py - Authentication endpoints
  • routes/stats.py - Statistics endpoints

We could also potentially look into refactoring the database and response formatting helpers.

@yashgoyal0110
Copy link

can i work on this issue?

@nasredeenabdulhaleem
Copy link

Hi @teolemon , I will start working on this issue and make a pr in earnest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

4 participants