• Timothy Andrew's avatar
    Initial attempt at refactoring API scope declarations. · 6f192250
    Timothy Andrew authored
    - Declaring an endpoint's scopes in a `before` block has proved to be
      unreliable. For example, if we're accessing the `API::Users` endpoint - code
      in a `before` block in `API::API` wouldn't be able to see the scopes set in
      `API::Users` since the `API::API` `before` block runs first.
    
    - This commit moves these declarations to the class level, since they don't need
      to change once set.
    6f192250
api.rb 4 KB