psecio / invoke

Invoke: Route Authentication/Authorization Management
36 stars 3 forks source link

Add HTTP verb checking #1

Closed enygma closed 9 years ago

enygma commented 9 years ago

Sometimes the user may only want checks to apply to certain HTTP verb actions. This could be accomplished through introducing a methods option to the configuration like so:

/foo/bar:
  protected: on
  methods: [post, get]
enygma commented 9 years ago

Added! It's in releases starting with 0.5 (https://github.com/psecio/invoke/releases/tag/0.5)