ShelbyTV / shelby_gt

Rails API services for Shelby GT
2 stars 0 forks source link

roll/explore and roll/featured routes break corresponding iso rolls #170

Closed iceberg901 closed 11 years ago

iceberg901 commented 11 years ago

For is rolls, we look up rolls by subdomain as follows:

get roll/:subdomain

This is the same route as roll/:id, and it decides to look up by subdomain when the id passed in is not a valid BSON id.

If the subdomain is explore.shelby.tv or featured.shelby.tv, these requests get caught by the roll/explore and roll/featured routes and we don't load the proper roll information.

Proposed fix is to be able to look up rolls by subdomain as follows:

get /roll?subdomain=the_subdomain_i_want