SC5 / cerebellum

Cerebellum.js is a powerful set of tools that help you structure your isomorphic apps, just add your preferred view engine.
MIT License
106 stars 1 forks source link

Make allowedStatusCodes list in Store's fetch configurable #7

Closed hoppula closed 9 years ago

hoppula commented 9 years ago

Currently fetch returns empty stores with status codes 401 & 403. This allows showing proper data for logged-in users (API call returns with 200) and prevents error for users who are not logged-in, they won't just see any data.

This could be another option to pass to client & server constructors, they will pass it to Store.