leaguevine/leaguevine-ultistats — Issue #11: Centralize query string parameters
Author: bullale
Created: 2012-02-26 15:36:06+00:00
State: open

Currently the season_id parameter is defined the Collection's .url definition. This means that the individual Team.Model's cannot assume the Collection URL. Not being able to use the default collection URL means that we also need logic to define a separate URL for PUT requests.

Also, the access_token is defined in the URL for every module's model and collection. While this is a simple variable and string concatenation, it seems like such a thing would be better if it were centralized.

I propose overriding Backbone.Sync very modestly so that HTTP request query strings are automatically appended with the access_token for all requests and with the season_id for collection get requests.