Helper to easily construct Rest actions.
Helper to easily construct Rest actions.
Typically, all actions in a naptime resource will all use the same auth parser and policy, or will want to use the same error handling function for all requests. These resources should do something similar to the following:
class MyResource extends RestActionHelpers[Foo, Bar] { def RRest[RACType, ResponseType] = Rest[RACType, ResponseType].auth(myAuthPolicy).catching(errorFn) ... }