Conversation
scott-wyatt
left a comment
There was a problem hiding this comment.
Just curious, why would this be on trailpack-express and not trailpack-footprints?
|
Because unfortunately the footprint controller and policy are here so no other choice to put this here... If there were in trailpack-footprint no problem to put everything there |
|
Currently trailpack-footprint is basically empty... it just provide the footprint configuration and routes but not the implementation of those |
|
@scott-wyatt another way of doing that under trailpack-footprint is to stop using generic routes for model footprint and start using dedicated route for each models, like this if models are ignored we just don't add the routes for this models, what do you think ? It will also work for both hapi and express when here it's only express. Sound much better |
|
Can I merge this @scott-wyatt ? |
Now with this, under config.footprint.models we can have an array of ignored models like controllers, if a footprint is called on an ignored model a 403 is returned