Commit 64fe2c13 authored by Randall Leeds's avatar Randall Leeds

move the json app state to /app/state no cache

Not every browser supports "Vary: Accept" so it's not a good idea
to try to serve the HTML of the app on the same path as the JSON
endpoint used for syncing the dynamic application state.
parent 2c422723
......@@ -169,7 +169,7 @@ class App
$scope.$on '$reset', => angular.extend $scope, @scope
# Fetch the initial model from the server
$http.get '',
$http.get 'state',
withCredentials: true
.success (data) =>
if data.model? then angular.extend $scope, data.model
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment