antek-drzewiecki / wine_bouncer

A Ruby gem that allows Oauth2 protection with Doorkeeper for Grape Api's
MIT License
112 stars 58 forks source link

Add protected strategy. #17

Closed sunnyrjuneja closed 9 years ago

sunnyrjuneja commented 9 years ago

Hello Antek,

I had to send a new PR because I force pushed. For my API, every end point is protected. I wanted to keep my code dry so I created a new strategy that by default protects every end point. I've updated the documentation to include an example. Let me know if there's any interest in this PR. If it's unneeded, feel free to leave it unmerged.

antek-drzewiecki commented 9 years ago

Hey @whatasunnyday, i like it! I used to have a request like this before. Will merge it ;) thanks!