NYUCCL/psiTurk — pull request #112 by jhamrick (2014-06-23 00:59:10+00:00)
Title: Add separate route to fetch taskdata

Backbone models can both save and fetch data, but currently the sync route only really supports saving data -- at least, currently, it just returns data corresponding to stuff like the id and condition, but doesn't return anything for data, questiondata, or eventdata. This means that on the JavaScript side, those values just get set to the defaults. However, it seems like it would be better if these values were populated from the database if they already exist there. This has the added benefit of allowing people to refresh the page, and still have their state stored (assuming the JavaScript itself can handle restarting from a given state).

Same as #111, except now merging into dev rather than master. Also, added basic tests for both GET and PUT to sync.