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

footprint add possibility to ignore models #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jaumard
Copy link
Contributor

@jaumard jaumard commented Nov 14, 2017

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

Copy link
Member

@scott-wyatt scott-wyatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious, why would this be on trailpack-express and not trailpack-footprints?

@jaumard
Copy link
Contributor Author

jaumard commented Nov 15, 2017

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

@jaumard
Copy link
Contributor Author

jaumard commented Nov 16, 2017

Currently trailpack-footprint is basically empty... it just provide the footprint configuration and routes but not the implementation of those

@jaumard
Copy link
Contributor Author

jaumard commented Nov 20, 2017

@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
ping also @tjwebb @konstantinzolotarev

@jaumard
Copy link
Contributor Author

jaumard commented Mar 20, 2018

Can I merge this @scott-wyatt ?

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