Sorry in advance if this is a noob question.
I'd like to secure my rest api with OAuth2 or something like it. That means each rest call needs to check the auth token. I would think something like server.pre() could be used for that, otherwise every call needs to interrogate headers, query params, or body for it separately. However, since none of the plugins are run until after routing, this won't work by default.
What are best practices here? Can I call the plugins manually to parse the request?
-Robot