Skip to content

Extensions, Automated Router Registration, Better updateListing validation and Type Hints#34

Merged
Prakhar896 merged 6 commits intomainfrom
prakhar
Jul 3, 2024
Merged

Extensions, Automated Router Registration, Better updateListing validation and Type Hints#34
Prakhar896 merged 6 commits intomainfrom
prakhar

Conversation

@Prakhar896
Copy link
Copy Markdown
Contributor

Overview:

  • New Extensions "service" with static method functionality, added a method that makes filtering dictionaries easier
  • New index.js in routes which auto-detects all router files, regardless of file tree depth, to collate and associate them with paths in a singular object. This object is used in ./index.js to automatically register routes
  • Automated route registration will only activate should you set routerRegistration to true in your configuration in config/config.json
  • Fixed type hints in models/index.js, type hints are now fully accurate. models/index.js will hard-import models to force intellisense capabilities. Other models defined will be imported to but won't have intellisense functionality
  • Improved validation in /updateListing via a yup validation schema

No sensitive changes in this PR except for the if condition check in ./index.js that checks if routerRegistration is automated.

Prakhar896 and others added 6 commits June 29, 2024 12:12
added Extensions service with static method functionality
hard imported models, other models not hard imported will still be auto imported but wont have intellisense functionality
only activated if routerRegistration set to true in config
@Prakhar896 Prakhar896 added the enhancement New feature or request label Jul 3, 2024
@Prakhar896 Prakhar896 merged commit c610cea into main Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant