Factor out success handlers currently duplicated from the project core
chrisvogt opened this issue · 1 comments
chrisvogt commented
I added copypasta of the current @personal-api/core
success handler because I was bikeshedding over multiple solutions.
Lines 3 to 12 in 854b1c8
chrisvogt commented
The solutions I've been weighing are:
- Pass in the success and error handlers. The plugin won't need to have any knowledge of the handlers.
- Import a module containing the error handlers. The plugin will need to maintain the handlers as a versioned dependency.
- ?