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

Handle multiple ip addresses #3

Closed
DavidePastore opened this issue Jan 11, 2017 · 1 comment
Closed

Handle multiple ip addresses #3

DavidePastore opened this issue Jan 11, 2017 · 1 comment
Assignees
Milestone

Comments

@DavidePastore
Copy link
Owner

DavidePastore commented Jan 11, 2017

It would be nice if you can filter the ip address based on different rules, given as array.

An example would be:

$options = array(
  'ip' => array('192.1.12.1', '192.1.15.5', '8.8.8.8')
);

$app->get('/api/myEndPoint',function ($req, $res, $args) {
  //Your amazing route code
})->add(new \DavidePastore\Slim\RestrictRoute\RestrictRoute($options));

See also: Respect/Validation#775

@DavidePastore DavidePastore added this to the v.0.2.0 milestone Jan 11, 2017
@DavidePastore DavidePastore self-assigned this Jan 11, 2017
@DavidePastore
Copy link
Owner Author

Closed with #5 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant