Virtuatable / virtuatable-core

The model layer gem for the jdr tools suite
0 stars 0 forks source link

Add "premium_only" flags in routes and services #1

Closed vincentcourtois closed 6 years ago

vincentcourtois commented 6 years ago

When a route is premium only, the response must be a 401 unauthorized if no premium token is given, or if the premium token is not the right one.

If a service is premium only, all its routes are premium only without distinction. The premium only in a service is just a shortcut.

Premium ony flags should be booleans, set default at "false".