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

Make resource routes whitelist instead of blacklist #5328

Merged
merged 1 commit into from Mar 25, 2017

Conversation

tburry
Copy link
Contributor

@tburry tburry commented Mar 17, 2017

The resource router was blacklisting methods with an isProtected method just like the old router. This was a mistake in the old router and we shouldn’t make the same mistake again.

Now we will use a whitelist so that methods will not be accessible as an endpoint unless they meet the following criteria.

  • The method is one of the basic HTTP methods or index.
  • The method matches <HTTP method>_name.

The resource router will not map methods like the current router. This means that the resource router will not be used for current Vanilla controllers. The intention is that when we want to update our HTML app then we will move the controllers over one-by-one.

@tburry tburry modified the milestone: 2017-Q1-6 Mar 21, 2017
@tburry tburry force-pushed the feature/resource-route-whitelist branch from 99b7787 to 43055de Compare March 24, 2017 20:48
@tburry tburry merged commit eff5251 into master Mar 25, 2017
@tburry tburry deleted the feature/resource-route-whitelist branch March 25, 2017 15:37
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.

None yet

2 participants