Skip to content

Refactor main.py and organize code into separate modules. - #5

Open
lucianotonet wants to merge 1 commit into
edmar:mainfrom
lucianotonet:main
Open

Refactor main.py and organize code into separate modules.#5
lucianotonet wants to merge 1 commit into
edmar:mainfrom
lucianotonet:main

Conversation

@lucianotonet

Copy link
Copy Markdown

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

Suggested and byt the ChatGPT itselft 🤯:
- 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 FastAPI server
@edmar

edmar commented May 4, 2023

Copy link
Copy Markdown
Owner

Hey Luciano,

I love the reorganization.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants