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

refactored end_points.js and related code #28

Merged
merged 1 commit into from
Jan 3, 2023

Conversation

rachjiang
Copy link
Contributor

  • Split endpoints.js into 3 separate files in “src/back_end/api/“ by categories named leads.js, projects.js, and events.js
  • Removed unused firebase methods detected by ESLint in each category’s import
  • All files in “Src/back_end/test” have updated import paths
  • Updated import paths in “src/api/api.js” to import all query functions from the corresponding categorized endpoint file (i.e. leads.js, projects.js, events.js)
  • Replaced all database calls accessing api import due to refactoring of endpoints.js. For example, getActiveLeads() previously accessed api as: api.getActiveLeads(). Now, it’s leads.getActiveLeads();

@ASimpleFox ASimpleFox merged commit fd8a6f5 into hcp-uw:main Jan 3, 2023
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