chatgpt-code-assistant icon indicating copy to clipboard operation
chatgpt-code-assistant copied to clipboard

Refactor main.py and organize code into separate modules.

Open lucianotonet opened this issue 2 years ago • 1 comments

Suggested and implemented by the ChatGPT itself 🤯:

  • Move FastAPI routes from main.py to modules/routes.py
  • Move Pydantic models to modules/models.py
  • Move utility function to modules/utils.py
  • Simplify main.py to only initialize and run the FastAPI server

lucianotonet avatar May 01 '23 00:05 lucianotonet

Hey Luciano,

I love the reorganization.

Some new features were added in the main branch. Could you please move them to your routes file?

edmar avatar May 04 '23 19:05 edmar