You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make a service that loads all resources in given directories.
Why:
Manually typing in the import statement and writing the resource class names in the resources config can be cumbersome.
Acceptance Criteria
Below is a list of tasks that must be completed before this issue can be closed.
Write documentation
Write unit tests
Write integration tests
Example Pseudo Code (for implementation)
import{ResourceLoaderService}from"...";constserver=newDrash.Server({// ResourceLoaderService yields a single array of resources from multiple paths and excludes whatever is in `exclude`resources: newResourceLoaderService({paths: ["./src/v1/resources","./src/v2/resources"],exclude: [HomeResource,SecretResource,SomeResource]})});
The text was updated successfully, but these errors were encountered:
Summary
What:
Make a service that loads all resources in given directories.
Why:
Manually typing in the
import
statement and writing the resource class names in theresources
config can be cumbersome.Acceptance Criteria
Below is a list of tasks that must be completed before this issue can be closed.
Example Pseudo Code (for implementation)
The text was updated successfully, but these errors were encountered: