foxnewsnetwork / American-Lit-315

1 stars 1 forks source link

Make null tokens also serve out items #75

Closed foxnewsnetwork closed 12 years ago

foxnewsnetwork commented 12 years ago

Seriously, I want to just hit /api/v1/products.json and get something without having to do token=(anything)

SpinnakerSix commented 12 years ago

like a random product?

SpinnakerSix commented 12 years ago

isnt the whole point for the token system to simulate what real game will feel like using it?

SpinnakerSix commented 12 years ago

okay this is currently turned off. will figure out how to deal with security issues later. i guess we can limit people to a test database for products if there is no token supplied.

SpinnakerSix commented 12 years ago

nope. allowing null tokens messes with the current code structure too much. ie. products stats and game stats depends on knowing where the product is being served out to unction correctly.

null token is once again reject. this feature might be a long term fix.

stop being lazy and just use token=12345

in fact, token=1 also works for your convenience.