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

Extract question routes to reduce clutter #27

Merged
merged 9 commits into from
Sep 30, 2024

Conversation

tsulim
Copy link

@tsulim tsulim commented Sep 29, 2024

Changes

  • Extract out question routes from index.js in backend to reduce clutter
  • New folders: controller and routes

Additional information

controller

  • Contain the business logic for handling requests and generating responses.
  • They perform tasks like querying the database, processing data, and returning responses to the client.

routes

  • Group similar ones together and handle the routing of HTTP requests to the appropriate controller functions.
  • They define the endpoints and HTTP methods (GET, POST, PUT, DELETE) for your application.

@tsulim tsulim self-assigned this Sep 29, 2024
@iynixil iynixil merged commit 321cfa2 into question_branch Sep 30, 2024
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